我真的很难理解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时,我继续得到这个错误。
发布于 2019-06-11 09:32:37
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的引用,这个错误就消失了。
https://stackoverflow.com/questions/56497968
复制相似问题