React Native 错误:/.../节点模块/本机基本/字体/rubicon-icon-font.ttf:无此文件或目录

yx2lnoni  于 2022-11-25  发布在  React
关注(0)|答案(3)|浏览(155)

我有错误建立一个新的ios克隆仓库。几天前,它工作正常。现在我尝试重新安装native-base或删除node_modules,并再次做npm install。但仍然有错误:

2018-05-10 12:07:07.983 xcodebuild[71799:432389]  DVTAssertions: Warning in /Library/Caches/com.apple.xbs/Sources/IDEXcode3ProjectSupport/IDEXcode3ProjectSupport-14095/Xcode3Core/LegacyProjects/Frameworks/DevToolsCore/DevToolsCore/BuildSystem/Runtime/PBXTargetBuildContext.mm:757
Details:  unexpected successful exit code from cancelled command <C0038:'CpResource Lato-Bold.ttf':P10>
Object:   <PBXTargetBuildContext: 0x7fd2dfe53830>
Method:   -createCommandInvocationRecordFromInvocation:
Thread:   <NSThread: 0x7fd2df8641a0>{number = 3, name = (null)}
Please file a bug at http://bugreport.apple.com with this warning message and any useful information you can provide.

** BUILD FAILED **

The following build commands failed:
    CpResource /Users/sample_user/Documents/repos/mobile/node_modules/native-base/Fonts/rubicon-icon-font.ttf build/Build/Products/Debug-iphonesimulator/sampleApp.app/rubicon-icon-font.ttf
(1 failure)

Installing build/Build/Products/Debug-iphonesimulator/sampleApp.app
An error was encountered processing the command (domain=NSPOSIXErrorDomain, code=22):
Failed to install the requested application
The bundle identifier of the application could not be determined.
Ensure that the application's Info.plist contains a value for CFBundleIdentifier.
Print: Entry, ":CFBundleIdentifier", Does Not Exist

Command failed: /usr/libexec/PlistBuddy -c Print:CFBundleIdentifier build/Build/Products/Debug-iphonesimulator/sampleApp.app/Info.plist
Print: Entry, ":CFBundleIdentifier", Does Not Exist

以下是我的版本:

react-native-cli: 2.0.1
react-native: 0.47.2

"native-base": "^2.3.1",

pod version: 1.4.0

我错过什么了吗?

xn1cxnb4

xn1cxnb41#

我仍然得到无法解释的错误后,所以我解决了这个手动下载rubicon-icon-font.ttf和粘贴在node_modules\native-base\Fonts\

qpgpyjmq

qpgpyjmq2#

这个问题在master上得到了解决,您可以在今天的发行版中找到它
https://github.com/GeekyAnts/NativeBase/issues/1850

wtzytmuj

wtzytmuj3#

我在升级Native Base后得到了这个错误。解决方案是从Resources下的XCode中删除丢失的文件。

相关问题