-
Notifications
You must be signed in to change notification settings - Fork 1.9k
iOS build failed when using plugin-push 2.3.0 #2845
Comments
You should install CocoaPods manually, see here |
@GitToTheHub Thanks for reply. But when I run build command with verbose I below error Plugins/phonegap-plugin-push/Pushplugin.m normal x86_64 objective c com.apple.llvm.clang.1_0.compiler (1 failure) is this because of cocoapods ? or xcode ? |
Have you first installed CocoaPods manually?
|
Having the same issue on my CI pipeline. Is the only possible solution to manually get the git repo? |
The work around solve my issue , at first I installed cocoa-pods globally in build machine and run npm install, and build iOS and Android. |
Yes the workaround worked for me too. But it slows down the build due to the repo cloning it performs. My build agent has a global 1.8.4 cocoapod installation. I've read about a change in cocoapod 1.8.x due to which the repo isn't nessesary anymore. The podfile needs a source on the new CDN instead |
You wrote
You don't have to clone the repo each time you build your app. It's only required once. Thanks for the link with the new CDN. Didn't know it's no longer neccessary in new versions. |
Hi there, yes unfortunately we only have a hosted Apple build agent, so i can't persist the downloaded repository and have to clone it with every run. Do you think it might be worth of suggesting a pullrequest fixing the source in podfile and also updates the plugin.xml to the new tags? The base problem seems to be in the cordova-ios platform. |
Ah ok, that explains, why you must download every time the complete repo. Really heavy ;)
I think it would be great if this could be fixed by using the CDN links to avoid the problem, because a lot have problems with it. But when you say there is already a fix on the way, everything is fine and we must wait for an cordova-ios update ;)
…________________________________
From: Markus <[email protected]>
Sent: Tuesday, November 19, 2019 4:10:30 PM
To: phonegap/phonegap-plugin-push <[email protected]>
Cc: GitToTheHub <[email protected]>; Mention <[email protected]>
Subject: Re: [phonegap/phonegap-plugin-push] iOS build failed when using plugin-push 2.3.0 (#2845)
Hi there, yes unfortunately we only have a hosted Apple build agent, so i can't persist the downloaded repository and have to clone it with every run. Do you think it might be worth of suggesting a pullrequest fixing the source in podfile and also updates the plugin.xml to the new tags?
The base problem seems to be in the cordova-ios platform.
apache/cordova-ios#700<apache/cordova-ios#700>
But there is a fix on the way 😄
apache/cordova-ios#719<apache/cordova-ios#719>
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub<#2845?email_source=notifications&email_token=ADIWBXLLHXMWYIGR6XPXGTDQUQFXNA5CNFSM4JFKOIB2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEEOXOMI#issuecomment-555579185>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/ADIWBXLYJTYW6LA5KYS7MDDQUQFXNANCNFSM4JFKOIBQ>.
|
I made it work by removing the platform, installing cocoapods and then adding the platform again. Step by step:
|
@Akkora Thanks... |
The brew solution doesn't work for me--it causes many errors complaining about json and ffi not having pristine gems, even though the gems are fine... |
Actually, looks like this was an issue with my gemfile having an older version of cocoapods despite what I had installed on my system... man, the things that can go wrong with cordova! |
Help me please, I can't solve this problem cordova platform add ios You have been opted out of telemetry. To change this, run: cordova telemetry on. '\n'
ruby 2.6.3p62 (2019-04-16 revision 67580) [universal.x86_64-darwin19] macOS Catalina10.15.5 (19F101) PushPlugin 2.3.0 ╭─────────────────────────────────────╮ |
I ran the command and got this new error Mac-mini-de-Teuassuri:iOS Paz teuassuricardoso$ sudo chown -R teuassuricardoso /Users/teuassuricardoso/Desktop/iOS\ Paz CordovaError: Promise rejected with non-error: 'The CocoaPods repo has not been synced yet, this will take a long time (approximately 500MB as of Sept 2016). Please run
|
@teuassuri2 - try installing cocoa-pods specific version globally and then npm install followed by ionic build would resolve issue. |
1:20:31.1560750Z Installing "phonegap-plugin-push" for ios
2019-10-25T21:20:31.3837980Z "framework" tag with type "podspec" is deprecated and will be removed. Please use the "podspec" tag.
2019-10-25T21:20:32.8032650Z Failed to install 'phonegap-plugin-push': undefined
2019-10-25T21:20:32.8046410Z Failed to restore plugin "phonegap-plugin-push" from config.xml. You might need to try adding it again. Error: The CocoaPods repo has not been synced yet, this will take a long time (approximately 500MB as of Sept 2016). Please run
pod setup
first to sync the repo.Ionic CLI 4.12.0
Cordova CLI version and cordova platform version
Cordova iOS - 5.0.1
Cordova Android - 9.0
cordova plugin version | grep phonegap-plugin-push 2.3.0
Ruby version - 2.3.7p
Reproducible with Cocoapods version 1.7.5 and 1.8.3
I'm about to submit app to stores. Did anyone had this issue before or any work around to fix this?
The text was updated successfully, but these errors were encountered: