【问题标题】:Cordova iOS Building Libtool Failed ErrorCordova iOS 构建 Libtool 失败错误
【发布时间】:2018-10-15 14:36:28
【问题描述】:

我正在尝试构建我的 Cordova 应用程序的 iOS 版本。 我在 CordovaLib 的 Xcode 上收到此错误。我尝试了不同版本的 cordova-ios。

这是错误日志:

Apple Mach-O Librarian (libtool) 错误组

致命错误: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool: 无法打开文件列表文件: /Users/XXX/Downloads/Staging/platforms/ios/DerivedData/APP_NAME (没有这样的文件或目录)

Libtool /Users/XXX/Downloads/Staging/platforms/ios/DerivedData/APP_NAME/Build/Products/Debug-iphonesimulator/libCordova.a 正常 x86_64

【问题讨论】:

    标签: ios cordova ionic-framework


    【解决方案1】:

    尝试使用 legacy-build 模式。

    cordova build ios --buildFlag="-UseModernBuildSystem=0"
    

    【讨论】:

    • 以下构建命令失败:Libtool /Users/XXX/Downloads/Staging/platforms/ios/build/emulator/libCordova.a normal x86_64 (1 failure) CordovaError: Promise denied with non-error: '命令的错误代码 65: xcodebuild with args: -xcconfig,/Users/XXX/Downloads/Staging/platforms/ios/cordova/build-debug.xcconfig,-workspace,APP_NAME.xcworkspace,-scheme,APP_NAME,-configuration, Debug,-sdk,iphonesimulator,-destination,platform=iOS Simulator,name=iPhone XS Max,...... ......-UseModernBuildSystem=0'
    • 无法解决这个问题,不能使用 CLI 或 Xcode。有什么想法吗?
    • Xcode v10.我尝试回滚到 9.4.1。同样的问题。另外,我发现这家伙回来时也遇到了同样的问题。 stackoverflow.com/questions/36830131/… 我的 CordovaLib/Products/ 文件 cordova.framework 和 libCordova.a 在 Xcode 文件面板中显示为红色。
    猜你喜欢
    • 1970-01-01
    • 2018-06-07
    • 2016-03-27
    • 2017-05-15
    • 1970-01-01
    • 2019-07-28
    • 1970-01-01
    • 2016-07-05
    • 1970-01-01
    相关资源
    最近更新 更多