【问题标题】:error: /.../node_modules/native-base/Fonts/rubicon-icon-font.ttf: No such file or directory错误:/.../node_modules/native-base/Fonts/rubicon-icon-font.ttf:没有这样的文件或目录
【发布时间】:2018-10-20 07:01:47
【问题描述】:

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

我错过了什么吗?

【问题讨论】:

    标签: ios react-native build react-native-ios native-base


    【解决方案1】:

    之后我仍然遇到无法解释的错误,所以我通过手动下载 rubicon-icon-font.ttf 并将其粘贴到 node_modules\native-base\Fonts\ 解决了这个问题

    【讨论】:

      【解决方案2】:

      这是在master 上修复的,你可以在今天的版本中找到它

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

      【讨论】:

        猜你喜欢
        • 1970-01-01
        • 2019-10-14
        • 2018-05-01
        • 2019-06-10
        • 2021-10-31
        • 1970-01-01
        • 1970-01-01
        • 2019-01-05
        • 2021-06-10
        相关资源
        最近更新 更多