Unable to build for iOS - pods issue?
Closed this issue · 3 comments
We're having some build problems with cordova-plugin-firebasex so I thought I would come and try this sample project first. However we are also getting errors here and I am hoping someone can advise.
I've cloned and set up as per readme:
git clone https://github.com/dpa99c/cordova-plugin-firebasex-test.git && cd cordova-plugin-firebasex-test
npm install
cordova platform add ios
cordova run ios
Build fails with the last parts being:
...
Code Signing /Users/ross/repos/cordova-plugin-firebasex-test/platforms/ios/build/emulator/FirebaseTest.app/Frameworks/nanopb.framework with Identity -
/usr/bin/codesign --force --sign - --preserve-metadata=identifier,entitlements '/Users/ross/repos/cordova-plugin-firebasex-test/platforms/ios/build/emulator/FirebaseTest.app/Frameworks/nanopb.framework'
/Users/ross/repos/cordova-plugin-firebasex-test/platforms/ios/build/emulator/FirebaseTest.app/Frameworks/nanopb.framework: replacing existing signature
WriteAuxiliaryFile /Users/ross/Library/Developer/Xcode/DerivedData/FirebaseTest-aiflokqlqhchvbatlgsjsqbxhfhm/Build/Intermediates.noindex/FirebaseTest.build/Debug-iphonesimulator/FirebaseTest.build/Script-DBD93D91A9DD8FAD4CD6856A.sh (in target 'FirebaseTest' from project 'FirebaseTest')
cd /Users/ross/repos/cordova-plugin-firebasex-test/platforms/ios
write-file /Users/ross/Library/Developer/Xcode/DerivedData/FirebaseTest-aiflokqlqhchvbatlgsjsqbxhfhm/Build/Intermediates.noindex/FirebaseTest.build/Debug-iphonesimulator/FirebaseTest.build/Script-DBD93D91A9DD8FAD4CD6856A.sh
PhaseScriptExecution [CP]\ Copy\ Pods\ Resources /Users/ross/Library/Developer/Xcode/DerivedData/FirebaseTest-aiflokqlqhchvbatlgsjsqbxhfhm/Build/Intermediates.noindex/FirebaseTest.build/Debug-iphonesimulator/FirebaseTest.build/Script-DBD93D91A9DD8FAD4CD6856A.sh (in target 'FirebaseTest' from project 'FirebaseTest')
cd /Users/ross/repos/cordova-plugin-firebasex-test/platforms/ios
/bin/sh -c /Users/ross/Library/Developer/Xcode/DerivedData/FirebaseTest-aiflokqlqhchvbatlgsjsqbxhfhm/Build/Intermediates.noindex/FirebaseTest.build/Debug-iphonesimulator/FirebaseTest.build/Script-DBD93D91A9DD8FAD4CD6856A.sh
error: Resource "/Users/ross/Library/Developer/Xcode/DerivedData/FirebaseTest-aiflokqlqhchvbatlgsjsqbxhfhm/Build/Products/Debug-iphonesimulator/FirebaseInAppMessaging/InAppMessagingDisplayResources.bundle" not found. Run 'pod install' to update the copy resources script.
** BUILD FAILED **
The following build commands failed:
PhaseScriptExecution [CP]\ Copy\ Pods\ Resources /Users/ross/Library/Developer/Xcode/DerivedData/FirebaseTest-aiflokqlqhchvbatlgsjsqbxhfhm/Build/Intermediates.noindex/FirebaseTest.build/Debug-iphonesimulator/FirebaseTest.build/Script-DBD93D91A9DD8FAD4CD6856A.sh
(1 failure)
xcodebuild: Command failed with exit code 65
I tried going into platforms/ios
and running the following:
pod repo update
pod install
Then:
cd ../../
cordova run ios
But I still get the same error. I also tried updating config.xml ID to one under my developer profile, then removing platform directory and repeating steps--but no luck.
Any advice? I want to make sure I can get this test project working before raising any issues on main repo.
System details:
-> xcodebuild -version
Xcode 11.3.1
Build version 11C504
-> pod --version
1.8.4
-> npm --version
6.12.1
-> cordova --version
9.0.0 (cordova-lib@9.0.1)
Thanks!
in my case I had to remove all unneeded symbols from .env (empty spaces, comas, empty lines)