Open aubrey-fowler opened 3 years ago
I've seen these sorts of error when opening the Xcode project directly (instead of th .xcworkspace
file), but it doesn't look like you're doing that.
Are there any errors or warnings shown from the pod install
command?
Where would I run those pod commands from?
You would run pod install
in your platforms/ios
folder, although Cordova should already be running it as part of the build process.
cordova requirements
Requirements check results for android:
Java JDK: installed 1.8.0
Android SDK: installed true
Android target: installed android-29,android-28,android-26,android-19
Gradle: installed /usr/local/Cellar/gradle/6.2.1/bin/gradle
Requirements check results for ios:
Apple macOS: installed darwin
Xcode: installed 11.7
ios-deploy: installed 1.10.0
CocoaPods: installed 1.9.0
cd platforms/ios
pod install
Analyzing dependencies
Downloading dependencies
Generating Pods project
Integrating client project
Pod installation complete! There are 0 dependencies from the Podfile and 0 total pods installed.
[!] The Podfile does not contain any dependencies.
I tried to do this
cordova platform rm ios
cordova platform add ios@6.1.0
cordova build ios
but the result is the same
/Users/.../Plugins/cordova-plugin-update-notifier/UpdateNotifierPlugin.swift:17:8: error: no such module 'Siren'
import Siren
^
When I open up the .xcworkspace
file and try to run the project from there I get the same error.
I have cocoapods installed.
pod --version
1.9.0
In my project, I do seem to have a pods file.
pods.json
{
"declarations": {},
"sources": {},
"libraries": {}
}
Podfile
# DO NOT MODIFY -- auto-generated by Apache Cordova
platform :ios, '11.0'
target 'My App' do
project 'My App.xcodeproj'
end
It seems that the plugin is not putting Siren into my pods files.
@dpogue I figured out what the problem is. I was using cordova cli 8 and the pod tags
were only introduced in Cordova cli v 9. https://cordova.apache.org/docs/en/latest/plugin_ref/spec.html#podspec-ios
I had to upgrade my project to cordova cli v 9.
If you have installed cordova-plugin-cocoapod-supportx
plugin then remove the plugin, reinstall the platform and try again.
I have a project written in Cordova, AngularJS, and Ionic v1.
When I run the command cordova build ios --release
I'm getting this error:
How can I import Siren?