Both the commands phonegap run ios and cordova platform add ios throw a similar error
Error: An error occured during creation of ios sub-project.
~/.cordova/lib/ios/cordova/3.3.0/bin/create: 33:
~/.cordova/lib/ios/cordova/3.3.0/bin/create: Syntax error: "(" unexpected
Phonegap/cordova version is 3.3.0.
Android works fine.
Any idea for a fix?
You can't run iOS on ubuntu, just on mac osx
to add iOS to the project try with phonegap build iOS
That should add the iOS part to phonegap build if you have your phonegap build account properly set
Related
I use cordova-hot-code-push-plugin to realize hot code push, and it's okay on android, but there is error on ios when using command cordova run ios as following:
CHCP plugin after prepare hook:
Failed to load iOS project file. Maybe your Cordova version is not supported?
the versions I use:
cordova 11.0.0
cordova-ios 6.2.0
Xcode 13.3
Build version 13E113
thx for any suggestions!
I am building flutter app with Passbase integration. I have followed all steps from here: https://docs.passbase.com/flutter and in Android it works fine. However in iOS app is not building. VSCode shows this:
Xcode build done. 11.9s
Failed to build iOS app
Error output from Xcode build:
↳
Exited (sigterm)
Could not build the precompiled application for the device.
Error launching application on iPhone.
And Xcode shows this:
Maybe it is because I run latest flutter version 1.20.4 and Passbase says that they have tested it with 1.17.5...
Any ideas what to do?
If you are using Passbase plugin version 1.9.5, you need to use Xcode 12.0. Or use plugin version 1.9.4 instead. The only change between these versions is that 1.9.5 was built using Xcode 12.0.
Since i upgrade Xcode to 12.2 version, i start having problems when i try to run my ionic app in iOS Simulator.
App build successfully but couldn't start in simulator, in physical device works properly. I obtain the next error message
No target specified for emulator. Deploying to undefined simulator.
Device type "com.apple.CoreSimulator.SimDeviceType.undefined" could not be found.
Thanks
I have also faced same problem after updating the Mojave.
You can launch the simulator by specifying complete path to CoreSimulator for target attribute. Try following commands
$ ionic cordova emulate ios --livereload --consolelogs --target="iPhone-6,com.apple.CoreSimulator.SimRuntime.iOS-12-2"
$ ionic cordova emulate ios --livereload --consolelogs --target="iPhone-6,com.apple.CoreSimulator.SimRuntime.iOS-12-2" --buildFlag="-UseModernBuildSystem=0"
Let me know if it didn't work for you.
I install "ionic cordova run ios" on my PC (Windows 10) but I got an error message
"[ERROR] An error occurred while running subprocess cordova."
Does anyone know how to fix this?
To build an app for iOS you need to have the xcode command line tools installed. Cordova looks for these tools before building. If you don't have that, you can't build your app for iOS.
If you want to build your app for iOS you'll need a Mac with xcode and Cordova installed. Or you could use a virtual machine to do it. For more information on the virtual machine option have look here
My cordova phone application is building and running well in android, and now I'd like to build for ios. I can't do this in my linux environment, so I'm using a mini-mac with the Xcode tools installed.
I cloned the git repo to a working tree, and I'm running
cordova build ios
In the build output, I'm getting the following, with "fatal error", "BUILD FAILED" and "Error: ..." in red.
/Users/mgfrobozz/Desktop/asap_cordova/platforms/ios/ASAP Media/Plugins/org.apache.cordova.dialogs/CDVNotification.m:21:9: fatal error:
'Cordova/NSDictionary+Extensions.h' file not found
I found https://issues.apache.org/jira/browse/CB-8659, which indicated this issue (deprecated dependency in ios) was resolved in cordova 4.0.0, but I'm running cordova 6.0.0.
I don't know enough about the cordova guts to know how to fix CDVNotification.
Any suggestions?
Try the command: cordova platform update ios