Skip to content
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

how to use for ios - Siren error #4

Open
aubrey-fowler opened this issue Sep 3, 2020 · 9 comments
Open

how to use for ios - Siren error #4

aubrey-fowler opened this issue Sep 3, 2020 · 9 comments

Comments

@aubrey-fowler
Copy link

I have a project written in Cordova, AngularJS, and Ionic v1.


ionic info

Ionic:
   Ionic CLI         : 5.4.16 (/Users/aubrey/node_modules/ionic)
   Ionic Framework   : ionic1 1.3.5
   @ionic/v1-toolkit : 1.0.22

Cordova:
   Cordova CLI       : 8.1.2 (cordova-lib@8.1.1)
   Cordova Platforms : android 8.1.0, ios 6.1.0
   Cordova Plugins   : no whitelisted plugins (17 plugins total)

Utility:
   cordova-res : 0.15.1
   native-run  : 1.0.0

System:
   Android SDK Tools : 26.1.1 (/usr/local/share/android-sdk)
   ios-deploy        : 1.10.0
   ios-sim           : 8.0.2
   NodeJS            : v10.19.0 (/usr/local/Cellar/node@10/10.19.0/bin/node)
   npm               : 6.13.4
   OS                : macOS Catalina
   Xcode             : Xcode 11.7 Build version 11E801a

When I run the command cordova build ios --release

I'm getting this error:

ndex/Self\ Service.build/Release-iphonesimulator/Self\ Service.build/DerivedSources-normal/x86_64 -Xcc -I/Users/aubrey/Library/Developer/Xcode/DerivedData/Self_Service-axfyqgowigbqrkafuwoghjkcotbz/Build/Intermediates.noindex/Self\ Service.build/Release-iphonesimulator/Self\ Service.build/DerivedSources/x86_64 -Xcc -I/Users/aubrey/Library/Developer/Xcode/DerivedData/Self_Service-axfyqgowigbqrkafuwoghjkcotbz/Build/Intermediates.noindex/Self\ Service.build/Release-iphonesimulator/Self\ Service.build/DerivedSources -Xcc -DWK_WEB_VIEW_ONLY=1 -Xcc -DWK_WEB_VIEW_ONLY=1 -import-objc-header /Users/aubrey/Documents/Repos/SelfServiceApp/platforms/ios/Self\ Service/Bridging-Header.h -pch-output-dir /Users/aubrey/documents/repos/selfserviceapp/platforms/ios/build/sharedpch -pch-disable-validation -parse-as-library -module-name Self_Service -o /Users/aubrey/Library/Developer/Xcode/DerivedData/Self_Service-axfyqgowigbqrkafuwoghjkcotbz/Build/Intermediates.noindex/Self\ Service.build/Release-iphonesimulator/Self\ Service.build/Objects-normal/x86_64/UpdateNotifierPlugin.o

/Users/aubrey/Documents/Repos/SelfServiceApp/platforms/ios/Self Service/Plugins/cordova-plugin-update-notifier/UpdateNotifierPlugin.swift:17:8: error: no such module 'Siren'

import Siren

       ^



** BUILD FAILED **





The following build commands failed:

	CompileSwift normal x86_64 /Users/aubrey/Documents/Repos/SelfServiceApp/platforms/ios/Self\ Service/Plugins/cordova-plugin-update-notifier/UpdateNotifierPlugin.swift

	CompileSwiftSources normal x86_64 com.apple.xcode.tools.swift.compiler

(2 failures)

xcodebuild: Command failed with exit code 65

[ERROR] An error occurred while running subprocess cordova.

        

        cordova build ios --release exited with exit code 65.

        

        Re-running this command with the --verbose flag may provide more information.

aubrey@Softworkss-MacBook-Pro selfserviceapp % pod install

How can I import Siren?

@dpogue
Copy link
Member

dpogue commented Sep 3, 2020

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?

@aubrey-fowler
Copy link
Author

Where would I run those pod commands from?

@dpogue
Copy link
Member

dpogue commented Sep 3, 2020

You would run pod install in your platforms/ios folder, although Cordova should already be running it as part of the build process.

@aquinn637
Copy link
Contributor

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.

@aquinn637
Copy link
Contributor

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
       ^

@aquinn637
Copy link
Contributor

When I open up the .xcworkspace file and try to run the project from there I get the same error.

Screenshot 2020-09-11 at 09 46 51

@aquinn637
Copy link
Contributor

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": {}
}

Screenshot 2020-09-14 at 10 23 37

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.

@aquinn637
Copy link
Contributor

@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.

@pravinkumarputta
Copy link

If you have installed cordova-plugin-cocoapod-supportx plugin then remove the plugin, reinstall the platform and try again.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

4 participants