我正在尝试构建我的IOS应用程序(使用电容器和离子框架开发)。就在集成Google Firebase并添加Resources/GoogleService-Info. plist文件后,我在XCode中构建应用程序时出现以下错误。
- Command CodeSign失败,退出代码为非零**
CodeSign /Users/piyush/Library/Developer/Xcode/DerivedData/App-cfgpruswvcmgvpcxuzeyccwfgdyx/Build/Products/Debug-iphonesimulator/App.app (in target 'App' from project 'App')
cd /Users/piyush/Downloads/ncsmobileapp/ios/App
export CODESIGN_ALLOCATE\=/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/codesign_allocate
Signing Identity: "-"
/usr/bin/codesign --force --sign - --entitlements /Users/piyush/Library/Developer/Xcode/DerivedData/App-cfgpruswvcmgvpcxuzeyccwfgdyx/Build/Intermediates.noindex/App.build/Debug-iphonesimulator/App.build/App.app.xcent --timestamp\=none --generate-entitlement-der /Users/piyush/Library/Developer/Xcode/DerivedData/App-cfgpruswvcmgvpcxuzeyccwfgdyx/Build/Products/Debug-iphonesimulator/App.app
/Users/piyush/Library/Developer/Xcode/DerivedData/App-cfgpruswvcmgvpcxuzeyccwfgdyx/Build/Products/Debug-iphonesimulator/App.app: code object is not signed at all
In subcomponent: /Users/piyush/Library/Developer/Xcode/DerivedData/App-cfgpruswvcmgvpcxuzeyccwfgdyx/Build/Products/Debug-iphonesimulator/App.app/AppIcon60x60@2x.png
Command CodeSign failed with a nonzero exit code
我试着清理构建cahce,重启xcode。通过电容器重新构建应用程序,但还没有解决这个问题。有人能帮助解决这个问题吗?
- 更新**
存档应用程序时发生以下错误:
CodeSign /Users/piyush/Library/Developer/Xcode/DerivedData/App-cfgpruswvcmgvpcxuzeyccwfgdyx/Build/Intermediates.noindex/ArchiveIntermediates/App/InstallationBuildProductsLocation/Applications/App.app (in target 'App' from project 'App')
cd /Users/piyush/Downloads/ncsmobileapp/ios/App
export CODESIGN_ALLOCATE\=/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/codesign_allocate
Signing Identity: "Apple Development: Piyush Aggarwal (ZWHGYV6A62)"
Provisioning Profile: "iOS Team Provisioning Profile: app.neo.school"
(d2353688-03d7-47ff-942f-4f34fd4c6a93)
/usr/bin/codesign --force --sign 5FE6CDFE4B615D56B70C5DAEB7A151005A1122AE --entitlements /Users/piyush/Library/Developer/Xcode/DerivedData/App-cfgpruswvcmgvpcxuzeyccwfgdyx/Build/Intermediates.noindex/ArchiveIntermediates/App/IntermediateBuildFilesPath/App.build/Release-iphoneos/App.build/App.app.xcent --generate-entitlement-der /Users/piyush/Library/Developer/Xcode/DerivedData/App-cfgpruswvcmgvpcxuzeyccwfgdyx/Build/Intermediates.noindex/ArchiveIntermediates/App/InstallationBuildProductsLocation/Applications/App.app
/Users/piyush/Library/Developer/Xcode/DerivedData/App-cfgpruswvcmgvpcxuzeyccwfgdyx/Build/Intermediates.noindex/ArchiveIntermediates/App/InstallationBuildProductsLocation/Applications/App.app: code object is not signed at all
In subcomponent: /Users/piyush/Library/Developer/Xcode/DerivedData/App-cfgpruswvcmgvpcxuzeyccwfgdyx/Build/Intermediates.noindex/ArchiveIntermediates/App/InstallationBuildProductsLocation/Applications/App.app/AppIcon60x60@2x.png
Command CodeSign failed with a nonzero exit code
3条答案
按热度按时间rsl1atfo1#
请尝试删除派生数据并清除生成。
删除衍生数据的步骤:-
1.打开您的项目,转到文件-〉工作区设置
然后,您将找到一个带有箭头的派生数据位置:-
只需点击那个箭头,之后你会发现一个名为衍生数据的文件夹,删除衍生数据文件夹内的所有文件。然后它会工作正常。x1c 0d1x
46scxncf2#
这个问题是由于资源文件夹。我创建了该文件夹来添加我的GoogleServices-Info.plist文件。
我重命名了我的资源文件夹,并更改了GoogleServices-Info.pllist文件的路径,方法是在xcode中的应用程序构建短语中执行以下代码:
xam8gpfp3#
我在存档包含OneSignal(特别是
OneSignalNotificationServiceExtension
)框架的项目时遇到了相同的(随机)问题。要使其工作(w00t),我必须更改Apple Worldwide Developer Relations Certification Authority
上的KeyChain
Trust
设置(过期:2023年2月7日星期二22:48:47中欧)证书回到Use System Defaults
然后再次回到Always Trust
我不知道为什么这样做,但它的工作。