Unable to build ionic 3 application for ios using Xcode10 - ios

I have created a blank ionic project. And I was successfully able to add android platform. But when I am trying to build it on IOS device (XCode 10) it is freezing as shown in the image.
.
I ran below command to build the project:
ionic cordova run ios -- --buildFlag="-UseModernBuildSystem=0"
I have also tried:
ionic cordova build ios -- --buildFlag="-UseModernBuildSystem=0"
But no success.
Any help is recommended. I am stuck on it and is not able to resolve it after referring to various posts.

u could try to do this
ionic cordova prepare ios --prod
and the make the build direct on xCode

Related

Ionic native plugin not working after build --prod

I implemented some ionic native plugins in an app (standard install and imported to app.module properly). When I tested it, it worked fine in my DevApp. After I built it with ionic build --prod and open it, my plugins are not working at all. I'm building it as an iOS app. Is there any steps I'm missing?
My steps:
create ionic 4 app
ionic cordova platform add ios
build my app and install plugins
test it on DevApp and it's fine
ionic build --prod (I'm thinking maybe this step is wrong? Should I build in other ways to make native plugins work or included on iOS device?)
Thanks for your help!

Ionic cannot emulate ios

The build was successful but I can't emulate it:
When i want to check the file, the 'platform/ios/build' folder doesn't even exist
I'm using osx Mojave btw
I'm using XCode 10, and to run it you need to add flag:
# Cordova CLI
cordova run ios --buildFlag='-UseModernBuildSystem=0'
cordova build ios --buildFlag='-UseModernBuildSystem=0'
# Ionic CLI
ionic cordova run ios -- --buildFlag="-UseModernBuildSystem=0"
ionic cordova build ios -- --buildFlag="-UseModernBuildSystem=0"
source: https://github.com/apache/cordova-ios/issues/407

Ionic build fails Info.plist not found

Apple has tricked me and even though I disabled autoupdates it now pulled the most recent XCode version (Version 10.0 (10A255)) and dependencies. The effect is that I can not build my app anymore, even after removing (ionic cordova platform remove ios) and re-adding the platform.
It now fails with the error below.
onic cordova run ios --debug --target="iPhone-8" --consolelogs
...
<path>/platforms/ios/build/emulator/MyApp.app/Info.plist file not found.
[ERROR] An error occurred while running cordova run ios --debug --target iPhone-8 (exit code 1).
ionic --version
3.20.0
---- EDIT
ran with verbose and received :No scripts found for hook "before_deploy". as additional info for the failure.
----- EDIT ------
Please look here for more detail. I was able to reproduce it from scratch / a blank app template
Blank app fails debug build - /Info.plist file not found
ionic cordova emulate ios -- --buildFlag="-UseModernBuildSystem=0"
Try this command it should work,this is issue with cordova.
If you're building on the command-line, try this
ionic cordova emulate ios -- --buildFlag="-UseModernBuildSystem=0"
or
Xcode 10
If you are opening the project in the Xcode IDE, you need to change the build system in Workspace Settings to "Legacy Build System"
Xcode example
Now, You can also run this on command-line $ionic cordova build ios
Best of luck

Ionic building an IOS application

I have finished building and compiling the Android version of the application from my windows laptop.
But to run it on IOS, am I supposed to copy the application folder to a MAC computer and run "ionic run ios"?
Follow these steps.
Check whether Ionic is already installed in Mac by typing ionic -v.
If Ionic is already installed, type the following commands:
ionic platform add ios.
ionic build ios.
If Ionic is not installed yet,
First install Node.js in Mac.
Then install Cordova and Ionic by using this command:
npm install -g cordova ionic
Once done with the installation, use the above commands for adding platform and build.
Then you will able to see Xcode file in platform folder iOS.
Then you can ask iOS developer to generate ipa file for iOS build.
You should add ionic ios platform before build
ionic platform add ios
Read this link : Ionic build

Using $cordovaClipboard ng-cordova plugin in ionic for iOS

I am using $cordovaClipboard ng-cordova plugin in my ionic project. http://ngcordova.com/docs/plugins/clipboard/
The plugin works well on Android devices, but when building app for iOS this plugin does not work. Is there something i have missed out on or should consider?
Also, is there a way to run an ionic app on my iOS device or a simulator and at the same time the debug console should also show in terminal?
Debug iOS simulator with Safari
Try removing the iOS platform and readding it. It will re-add every plugin.
ionic platform remove ios
ionic platform add ios

Resources