sloyer
November 4, 2020, 7:18am
1
I am trying to deploy my App Via xCode.
I am using the IonicFramework and using Cocoapods to do the build.
My steps to starting my build go as follows.
In my project root i go:
$ionic build
$ionic capacitor add ios
$cd ios/App
I edit my podfile to include
pod 'Firebase/Auth'
$pod install
$cd ../../ionic capacitor open ios
From here Xcode Opens, I set my signing cert and do a build.
It looks like its going to make it all way way and then it just tanks on me saying
'No such module ‘Capacitor’ AppDelegate.swift
Any insights into what my issue could be?
Xcode error https://i.stack.imgur.com/yZeXF.png
Pod File https://i.stack.imgur.com/FOyt7.png
SwiftDelegate https://i.stack.imgur.com/dZ1W7.png
sloyer
November 5, 2020, 12:11am
2
I believe my issue is coming from my pod file.
When ever it runs ‘capacitor_pods’ it breaks
If i remove it, the build is fine but also its now really missing Capacitor.
platform :ios, ‘11.0’
use_frameworks!
workaround to avoid Xcode caching of Pods that requires
Product -> Clean Build Folder after new Cordova plugins installed
Requires CocoaPods 1.6 or newer
install! ‘cocoapods’, :disable_input_output_paths => true
def capacitor_pods
Automatic Capacitor Pod dependencies, do not delete
pod ‘Capacitor’, :path => ‘…/…/node_modules/@capacitor /ios’
pod ‘CapacitorCordova’, :path => ‘…/…/node_modules/@capacitor /ios’
pod ‘CordovaPluginsStatic’, :path => ‘…/capacitor-cordova-ios-plugins’
Do not delete
end
target ‘App’ do
capacitor_pods
Add your Pods here
pod ‘Firebase/Auth’
end
This is my error
Error
ArgumentError - Illformed requirement `"$IOS_FIREBASE_AUTH_VERSION"`
/Users/steve/.rvm/rubies/ruby-2.7.0/lib/ruby/gems/2.7.0/gems/cocoapods-core-1.10.0/lib/cocoapods-core/requirement.rb:63:in `parse'
/Users/steve/.rvm/rubies/ruby-2.7.0/lib/ruby/gems/2.7.0/gems/cocoapods-core-1.10.0/lib/cocoapods-core/requirement.rb:88:in `block in initialize'
sloyer
November 5, 2020, 12:33am
3
I have made sure the capacitor modules are in side my node_modules directory and i have nuked them an redone it.
max
November 5, 2020, 1:09am
4
Hope it’s working for you now. Just tested it myself on a fresh project and did not have the same issue. Are you using any other Capacitor plugins by chance?
sloyer
November 5, 2020, 1:25am
5
Hey Max,
These are the only capacitory ones we are using
pod ‘Capacitor’, :path => ‘…/…/node_modules/@capacitor /ios’
pod ‘CapacitorCordova’, :path => ‘…/…/node_modules/@capacitor /ios’
pod ‘CordovaPluginsStatic’, :path => ‘…/capacitor-cordova-ios-plugins’
We are still have no luck.
Removing ‘capacitor_pods’ and just keeping pod ‘Firebase/Auth’. Works to get the build done via command line but in XCode, it still stays Capacitor is missing which makes sense.
You have to update to Capacitor 2.4.1 or newer
1 Like
sloyer
November 5, 2020, 11:03pm
7
I am running these
“@capacitor /android”: “^2.4.0”,
“@capacitor /core”: “2.4.2”,
“@capacitor /ios”: “^2.4.2”,
The fix was on @capacitor /cli
sloyer
November 6, 2020, 12:09am
9
What is the easiest way to update the CLI?
“devDependencies”: {
“@capacitor /cli”: “2.4.0”,
“react-scripts”: “3.4.4”
},
You are in 2.4.0, have to update to 2.4.1
npm install @capacitor /cli@latest
sloyer
November 6, 2020, 1:29am
11
Updated our CLI we have ^2.4.0.
This got us to 2.4.2 and everything worked and now a new set of issues.
Thanks so much!
2 Likes