【问题标题】:Xcode build error: PhaseScriptExecution Strip\ Frameworks /appName.build/Debug-iphonesimulator/PROD.build/Script-8CBD27422B744FC9C0407AA3.shXcode 构建错误:PhaseScriptExecution Strip\ Frameworks /appName.build/Debug-iphonesimulator/PROD.build/Script-8CBD27422B744FC9C0407AA3.sh
【发布时间】:2019-06-11 09:32:37
【问题描述】:

我真的很难理解 Xcode 的内部结构,我得到的最新错误是这个:

** BUILD FAILED **


The following build commands failed:
    PhaseScriptExecution Strip\ Frameworks /Users/danale/Library/Developer/Xcode/DerivedData/build/Build/Intermediates.noindex/NFIBEngage.build/Debug-iphonesimulator/PROD.build/Script-8CBD27422B744FC9C0407AA3.sh

(1 failure)

Installing build/Build/Products/Debug-iphonesimulator/NFIBEngage.app
An error was encountered processing the command (domain=NSPOSIXErrorDomain, code=2):
Failed to install the requested application
An application bundle was not found at the provided path.
Provide a valid path to the desired application bundle.
Print: Entry, ":CFBundleIdentifier", Does Not Exist

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

我该如何解决这个问题?到目前为止,我所看到的都没有奏效。应用程序本身在模拟器中加载得很好,但我不断收到构建失败。

我在安装 React Native 0.53.3 和 React 16.2 时遇到了这个错误,当我升级到 React Native 0.59.9 和 React 16.8 时,我继续收到这个错误。

【问题讨论】:

    标签: react-native xcode10.1


    【解决方案1】:

    PhaseScriptExecution Strip\ Frameworks /appName.build/Debug-iphonesimulator/PROD.build/Script-8CBD27422B744FC9C0407AA3.sh Xcode 构建错误与 ios/Pods/Pods.xcodeproj/project.pbxproj 内部的某些配置有关,这些文件中的配置如下所示:

    9B41C3B09EAC07B2B007DE0F /* Strip Frameworks */ = {
                isa = PBXShellScriptBuildPhase;
                buildActionMask = 2147483647;
                files = (
                );
                inputPaths = (
                );
                name = "Strip Frameworks";
                outputPaths = (
                );
                runOnlyForDeploymentPostprocessing = 0;
                shellPath = /bin/sh;
                shellScript = "bash \"${BUILT_PRODUCTS_DIR}/${FRAMEWORKS_FOLDER_PATH}/InstabugCore.framework/strip-frameworks.sh\"\n";
            };
    

    一旦我完全删除了对 8CBD27422B744FC9C0407AA3 的引用,错误就消失了。

    【讨论】:

      猜你喜欢
      • 2013-08-12
      • 1970-01-01
      • 2013-10-12
      • 2021-01-24
      • 2022-11-13
      • 1970-01-01
      • 2013-03-12
      • 2021-03-16
      • 2011-03-16
      相关资源
      最近更新 更多