错误:/../node_modules/native-base/Fonts/rubicon-icon-font.ttf:



我在构建新的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

我错过了什么吗?

之后我仍然遇到无法解释的错误,所以我通过手动下载rubicon-icon-font.ttf并将其粘贴到node_modulesnative-baseFonts中来解决此问题

这是固定在master,你可以在今天的版本中找到它

https://github.com/GeekyAnts/NativeBase/issues/1850

升级本机基地后出现此错误。解决方案是从 XCode 的"资源"下删除丢失的文件。

最新更新