-
Notifications
You must be signed in to change notification settings - Fork 60
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error in iOS Build #3
Comments
Removing this plugin and copying the plist and json files for Google services in the root along with config.xml makes the Android build fail now, which works perfectly "with" this plugin. The iOS build is successful and seems to have copied a plist file but probably not the one supplied, else the Android build should have picked that up too. CopyPlistFile /Users/phonegap/Library/Developer/Xcode/DerivedData/CafeDelMarMusic-donlpwiribrhdbaoqrxwkabvsaxn/Build/Intermediates/ArchiveIntermediates/CafeDelMarMusic/InstallationBuildProductsLocation/Applications/CafeDelMarMusic.app/GoogleService-Info.plist CafeDelMarMusic/Resources/GoogleService-Info.plist |
For anyone who's facing a similar problem, the resolution I found is utterly strange but it works, this seems to be some sort of file write problem, and every time I build for iOS on PGB with the fcm-config plugin excluded from config.xml it builds correctly, and then I include the plugin back and re-upload and build again, and it works, and the app is receiving notification tests from FCM Console both in-app and in notification tray perfectly! |
I faced a similar issue. I'd like to share with anyone else that might be interested. I tried to build on Adobe Phonegap Build for ios, but I got a error as bellow
I wrote the config.xml like bellow:
and, I've modified the file like bellow:
After that, The result showed that my app have been compiled on PGB perfectly. |
Hey @ucci thanks for sharing your experience! But is the
|
@stetro no I have tried that but in PhoneGap build, since nothing other than only the config.xml file outside the www folder is considered legal by the build program, the plist file is not copied, I have tried keeping it inside www too, in Android build it always worked, but failed in iOS build where for some reason the build always copies a plist file to root using the CopyPlist function by default, and hence the conflict with FCM-config. I have also tried setting the preference of ios to 8, but it seems like it follows the same random pattern even now,
Now there's something more random happening, with Developer Certificate and Provisioning Profile for development it used to be step 1 and step 2, now after updating with Distribution Certificates and Profiles, it is clearly random. Take x number of failed builds with the same error message of failing in ARCHIVE where CopyPlist function failed to copy the Google Services Plist, and then suddenly builds without error. |
In my case, PGB builds Android apk but fails with iOS ipa, and the order of declarations doesn't affect the result. This is the error:
|
@anibalsanchez,: |
We can report it to find a solution. |
I'm sorry, but I cannot help here in any way - since I'm only using it for local cordova builds. |
thank you!!!!! |
The Android version of my app with this plugin compiled perfectly and Notification is working well, but the iOS build is throwing an archive failure error as below
** ARCHIVE FAILED **
The following build commands failed:
CopyPlistFile /Users/phonegap/Library/Developer/Xcode/DerivedData/CafeDelMarMusic-donlpwiribrhdbaoqrxwkabvsaxn/Build/Intermediates/ArchiveIntermediates/CafeDelMarMusic/InstallationBuildProductsLocation/Applications/CafeDelMarMusic.app/GoogleService-Info.plist CafeDelMarMusic/Plugins/cordova-plugin-fcm-config/GoogleService-Info.plist
(1 failure)
Error code 65 for command: xcodebuild with args: -xcconfig,/private/tmp/gimlet/2381572/project/cordova/build-release.xcconfig,-workspace,CafeDelMarMusic.xcworkspace,-scheme,CafeDelMarMusic,-configuration,Release,-destination,generic/platform=iOS,-archivePath,CafeDelMarMusic.xcarchive,archive,CONFIGURATION_BUILD_DIR=/private/tmp/gimlet/2381572/project/build/device,SHARED_PRECOMPS_DIR=/private/tmp/gimlet/2381572/project/build/sharedpch
Anybody with an idea on this please?
The text was updated successfully, but these errors were encountered: