Anyone's facing the same issues?
Failed to load resource: the server responded with a status of 404 (Not Found) http://localhost:8080/plugins/cordova-plugin-admob-free/www/admob.js.map
Failed to load resource: the server responded with a status of 404 (Not Found) http://localhost:8080/polyfills/promise-7.0.4.min.js.map
Banner shows but not clickable.
Interstitial works perfectly.
$ ionic info
✔ Gathering environment info - done!
Ionic:
ionic (Ionic CLI) : 4.1.2 (/usr/local/lib/node_modules/ionic)
Ionic Framework : ionic-angular 3.9.2
#ionic/app-scripts : 3.2.0
Cordova:
cordova (Cordova CLI) : 8.0.0
Cordova Platforms : android 6.3.0, ios 4.5.5
Cordova Plugins : cordova-plugin-ionic-keyboard 2.1.2, cordova-plugin-ionic-webview 2.1.4, (and 18 other plugins)
System:
ios-deploy : 1.9.2
ios-sim : 5.0.6
NodeJS : v8.11.1 (/usr/local/bin/node)
npm : 6.4.1
OS : macOS Sierra
Xcode : Xcode 9.2 Build version 9C40b
Plugin conflicts with googlemaps in my case. See the workaround here.
https://github.com/ratson/cordova-plugin-admob-free/issues/283
Related
My new ionic app won't run in the iOS emulator.
Its a fresh install of ionic and Xcode, these are my steps:
npm install -g ionic
ionic start myApp tabs
ionic cordova platform add ios
ionic cordova build ios
ionic cordova emulate ios
Then I get the following error:
No target specified for emulator. Deploying to undefined simulator
/localhost/myApp/platforms/ios/build/emulator/MyApp.app/Info.plist
file not found.
According to this thread (Fresh Ionic Fails to Emulate iOS 12 - Info.plist file not found) it should work with the following command:
ionic cordova emulate ios -- --buildFlag="-UseModernBuildSystem=0"
But then I get the following error:
No target specified for emulator. Deploying to undefined simulator
Device type "com.apple.CoreSimulator.SimDeviceType.undefined" could not be found.
And then according to this thread (Issues starting iOS simulator from CLI) it should work by updating ios-sim like this:
cd platforms/ios/cordova && npm install ios-sim#latest
But I still get the following error:
No target specified for emulator. Deploying to undefined simulator
Device type "com.apple.CoreSimulator.SimDeviceType.undefined" could not be found.
Ionic:
ionic (Ionic CLI) : 4.10.2 (/usr/local/lib/node_modules/ionic)
Ionic Framework : #ionic/angular 4.0.1
#angular-devkit/build-angular : 0.12.4
#angular-devkit/schematics : 7.2.4
#angular/cli : 7.2.4
#ionic/angular-toolkit : 1.4.0
Cordova:
cordova (Cordova CLI) : 8.1.2 (cordova-lib#8.1.1)
Cordova Platforms : ios 4.5.0
Cordova Plugins : cordova-plugin-ionic-keyboard 2.1.3, cordova-plugin-ionic-webview 3.1.2, (and 4 other plugins)
System:
ios-deploy : 1.9.4
ios-sim : 7.0.0
NodeJS : v10.15.1 (/usr/local/bin/node)
npm : 6.4.1
OS : macOS Mojave
Xcode : Xcode 10.1 Build version 10B61
The problem lie with ios-sim package which couldn't detect running simulators.
Updating to 8.0.1 with the following steps resolved the issue for me.
force update ios-sim to a working version
IMPORTANT needs to be done from inside the platforms/ios/cordova directory.
cd platforms/ios/cordova && npm install ios-sim#8.0.1
check if devices are now listed, takes a few seconds
ionic cordova emulate --list
installs appscript if not installed already
ionic cordova build ios
try to deploy to simulator
ionic cordova emulate --release --prod --livereload ios -- --buildFlag="-UseModernBuildSystem=0"
This will find any running simulator and deploy the app
Try just building the project and then running it from Xcode instead first.
ionic cordova build ios -- --buildFlag="-UseModernBuildSystem=0"
Then open the platforms/ios folder in Xcode and you'll be able to run it from there plus see any errors there may be with the project. When you eventually decide to push the app to the store you'll need to do this anyway.
EDIT
Then try targeting a specific emulator:
ionic cordova emulate ios --list get list of available targets to copy into the next command.
ionic cordova emulate --livereload ios -- --buildFlag="-UseModernBuildSystem=0" --target="iPhone-X, 12.1" example targeting iPhone XR.
The issue is related to a breaking changes on Xcode 10 not already reflected on ios-sim. You can check on ion-sim repo issue "List empty of devices simulator with Xcode 10".
The issue have already been fixed but is waiting for a new release submission.
You can continue running your App on emulator directly from Xcode.
I am having an issue while using add platform ios command to build ios app in ionic project. The project builds successfully in android but not is IOS.
Command used:
ionic cordova platform add ios
Error:
Using cordova-fetch for cordova-ios#~4.5.4
Adding ios project...
Creating Cordova project for the iOS platform:
Path: ../../documents/a-copy/platforms/ios
Package: com.qodelogix.assurant
Name: Assurant Drive
iOS project created with cordova-ios#4.5.5
Installing "cordova-android-support-gradle-release" for ios
Installing "cordova-plugin-braintree" for ios
Embedded Frameworks in cordova-plugin-braintree
Added Arch stripping run script build phase
Installing "cordova-plugin-camera" for ios
Failed to install 'cordova-plugin-camera': Error: Unexpected key "NSMainNibFile~ipad" while parsing <dict/>.
Ionic Info:
Ionic:
ionic (Ionic CLI) : 4.5.0 (/usr/local/lib/node_modules/ionic)
Ionic Framework : ionic-angular 3.9.2
#ionic/app-scripts : 3.2.0
Cordova:
cordova (Cordova CLI) : 8.1.2 (cordova-lib#8.1.1)
Cordova Platforms : browser 5.0.3
Cordova Plugins : cordova-plugin-ionic-keyboard 2.1.3, cordova-plugin-ionic-webview 1.2.0, (and 12 other plugins)
System:
ios-deploy : 1.9.4
ios-sim : 5.1.0
NodeJS : v8.11.4 (/usr/local/bin/node)
npm : 6.4.1
OS : macOS High Sierra
Xcode : Xcode 9.4.1 Build version 9F2000
Please help me fix this error. Any help is appreciated.
I get this error, when trying to run an ionic app on android with livereload.
cordovaProject.projectConfig.getFileResources is not a function
When I try to re-install cordova, I get the same error. (npm install -g ionic cordova).
I removed the platform.
cordova platform rm android
and added it again:
cordova platform add android --save
All that changed nothing.
This is my ionic info output:
Ionic:
ionic (Ionic CLI) : 4.0.0
Ionic Framework : ionic-angular 3.9.2
#ionic/app-scripts : 3.2.0
Cordova:
cordova (Cordova CLI) : 6.3.0
Cordova Platforms : android 7.0.0
System:
Android SDK Tools : 26.1.1
NodeJS : v8.11.4 (C:\Program Files\nodejs\node.exe)
npm : 2.15.12
OS : Windows 10
Environment:
ANDROID_HOME : C:\Users\lars\AppData\Local\Android\Sdk
Android Studion is up 2 date...
How can I get rid of that error?
Many Thanks
I have been working on an app using Ionic Framework for a while and I have recently gotten this error after running sudo ionic cordova build ios:
The following build commands failed:
Ld build/emulator/Aqua\ Hydration.app/Aqua\ Hydration normal x86_64
(1 failure)
Error: Error code 65 for command: xcodebuild with args: -xcconfig,/Users/andrewrodebaugh/aqua/platforms/ios/cordova/build-debug.xcconfig,-workspace,Aqua Hydration.xcworkspace,-scheme,Aqua Hydration,-configuration,Debug,-sdk,iphonesimulator,-destination,platform=iOS Simulator,name=iPhone X,build,CONFIGURATION_BUILD_DIR=/Users/andrewrodebaugh/aqua/platforms/ios/build/emulator,SHARED_PRECOMPS_DIR=/Users/andrewrodebaugh/aqua/platforms/ios/build/sharedpch
[ERROR] An error occurred while running cordova build ios (exit code 1).
Full Log
Also my ionic info:
$ ionic info
cli packages: (/Users/andrewrodebaugh/aqua/node_modules)
#ionic/cli-utils : 1.18.0
ionic (Ionic CLI) : 3.18.0
global packages:
cordova (Cordova CLI) : 7.0.1
local packages:
#ionic/app-scripts : 3.0.1
Cordova Platforms : ios 4.6.0-dev
Ionic Framework : ionic-angular 3.8.0
System:
ios-deploy : 1.9.2
Node : v6.11.3
npm : 2.15.12
OS : macOS High Sierra
Xcode : Xcode 9.1 Build version 9B55
Environment Variables:
ANDROID_HOME : not set
Misc:
backend : legacy
Thanks!
Sorry if this information is too much I just have been stuck on this error for too long so I need help.
I've done the following steps :
create ionic project with command : run ionic start myApp tabs
add platform on ionic project with command : ionic platform add ios, ionic platform add android
I can't find the platforms folder on my project structure
This is my project sructure :
bower.json
config.xml
gulpfile.js
hooks
ionic.project
package.json
README.md
resources
scss
www
This is my ionic info :
Cordova CLI: 5.4.1
Ionic CLI Version: 1.7.13
Ionic App Lib Version: 0.6.5
ios-deploy version: 1.8.4
ios-sim version: 5.0.6
OS: Mac OS X El Capitan
Node Version: v5.4.1
Xcode version: Xcode 7.2 Build version 7C68
My question :
Where is the platforms folder ?
The platforms folder can't created when i create project in this directory :
~/Documents/TESTING Projects/IONIC
I tried to change my directory to : ~/Documents/IONIC, and everything working as expected