While trying to build ios using ionic cordova build ios, I am getting the following error -
Error: Error code 65 for command: xcodebuild with args: -xcconfig,/Users/raihan/Downloads/quitch-app/platforms/ios/cordova/build-debug.xcconfig,-workspace,Quitch.xcworkspace,-scheme,Quitch,-configuration,Debug,-sdk,iphonesimulator,-destination,platform=iOS Simulator,name=iPhone SE,build,CONFIGURATION_BUILD_DIR=/Users/raihan/Downloads/quitch-app/platforms/ios/build/emulator,SHARED_PRECOMPS_DIR=/Users/raihan/Downloads/quitch-app/platforms/ios/build/sharedpch
I have searched through the net since a long time but can not find any solution.
My plugins list
com-sarriaroman-photoviewer 1.1.10 "PhotoViewer"
cordova-plugin-console 1.0.5 "Console"
cordova-plugin-device 1.1.4 "Device"
cordova-plugin-file 4.0.0 "File"
cordova-plugin-file-opener2 2.0.19 "File Opener2"
cordova-plugin-file-transfer 1.6.3 "File Transfer"
cordova-plugin-firebase 0.1.23 "Google Firebase Plugin"
cordova-plugin-network-information 1.3.3 "Network Information"
cordova-plugin-splashscreen 4.0.3 "Splashscreen"
cordova-plugin-statusbar 2.2.1 "StatusBar"
cordova-plugin-whitelist 1.3.1 "Whitelist"
cordova-plugin-youtube-video-player 1.0.6 "CordovaYoutubeVideoPlayer"
cordova-sqlite-storage 2.0.4 "Cordova sqlite storage plugin"
ionic-plugin-keyboard 2.2.1 "Keyboard"
My system info
cli packages:
#ionic/cli-plugin-cordova : 1.6.2 (/Users/raihan/Downloads/quitch-app/node_modules/#ionic/cli-plugin-cordova)
#ionic/cli-plugin-ionic-angular : 1.4.1 (/Users/raihan/Downloads/quitch-app/node_modules/#ionic/cli-plugin-ionic-angular)
#ionic/cli-utils : 1.6.0 (/Users/raihan/Downloads/quitch-app/node_modules/#ionic/cli-utils)
ionic (Ionic CLI) : 3.6.0 (/Users/raihan/Downloads/quitch-app/node_modules/ionic)
global packages:
Cordova CLI : 7.0.1
local packages:
#ionic/app-scripts : 2.0.2
Cordova Platforms : android 6.2.3 ios 4.5.1
Ionic Framework : ionic-angular 3.5.3
System:
Android SDK Tools : 26.0.2
Node : v6.11.3
OS : macOS High Sierra
Xcode : Xcode 9.0 Build version 9A235
ios-sim : 6.1.2
npm : 5.3.0
Any Help is highly appreciated.
I have fixed the errors. The issues are as follows -
The main problem was with the cordova-plugin-console plugin. Cordova do not support this plugin since cordova version-ios 4.5.0.
Also I had to provide the updated google-json file.
Now it is building successfully on XCode and Emulator.
Related
Would appreciate any guidance on how to resolve conflict with plugins when building Ionic 4 Cordova app for IOS w xcode.
Below are my working plugins - i.e. project builds successfully with these plugins.
BUT, when trying to add cordova-plugin-firebase-dynamiclinks using:
$ cordova plugin add cordova-plugin-firebase-dynamiclinks --variable APP_DOMAIN="example.ca" --variable PAGE_LINK_DOMAIN="example.page.link";
addition fails with error:
Failed to install 'cordova-plugin-firebase-dynamiclinks': Error: pod: Command failed with exit code 31
at ChildProcess.whenDone (/Users/name/project/node_modules/cordova-common/src/superspawn.js:135:23)
at ChildProcess.emit (events.js:198:13)
at maybeClose (internal/child_process.js:982:16)
at Process.ChildProcess._handle.onexit (internal/child_process.js:259:5)
pod: Command failed with exit code 31
As discovered through search, I have tried:
platforms/ios/pod repo update
platforms/ios/pod install
which execute successfully prior to addition of cordova-plugin-firebase-dynamiclinks
MY WORKING SET OF PLUGINS (these build w/ success prior to addition of dynamiclinks plugin):
cordova-plugin-androidx 1.0.2 "cordova-plugin-androidx"
cordova-plugin-androidx-adapter 1.1.0 "cordova-plugin-androidx-adapter"
cordova-plugin-datepicker 0.9.3 "DatePicker"
cordova-plugin-device 2.0.3 "Device"
cordova-plugin-firebasex 7.0.1 "Google Firebase Plugin"
cordova-plugin-google-analytics 1.8.6 "Google Universal Analytics Plugin"
cordova-plugin-googleplus 8.2.1 "Google SignIn"
cordova-plugin-inappbrowser 3.2.0 "InAppBrowser"
cordova-plugin-ionic-keyboard 2.2.0 "cordova-plugin-ionic-keyboard"
cordova-plugin-ionic-webview 4.1.3 "cordova-plugin-ionic-webview"
cordova-plugin-splashscreen 5.0.3 "Splashscreen"
cordova-plugin-statusbar 2.4.3 "StatusBar"
cordova-plugin-whitelist 1.3.4 "Whitelist"
cordova-sqlite-storage 3.4.1 "Cordova sqlite storage plugin - cordova-sqlite-storage plugin version"
cordova-support-google-services 1.3.2 "cordova-support-google-services"
IONIC INFO:
Ionic CLI : 5.4.15 (/usr/local/lib/node_modules/ionic)
Ionic Framework : #ionic/angular 4.11.8
#angular-devkit/build-angular : 0.800.6
#angular-devkit/schematics : 8.1.3
#angular/cli : 8.2.2
#ionic/angular-toolkit : 2.0.0
Cordova:
Cordova CLI : 9.0.0 (cordova-lib#9.0.1)
Cordova Platforms : ios 5.1.1
Cordova Plugins : cordova-plugin-ionic-keyboard 2.2.0, cordova-plugin-ionic-webview 4.1.3, (and 14 other plugins)
Utility:
cordova-res : 0.8.1
native-run (update available: 0.3.0) : 0.2.8
System:
ios-sim : 8.0.2
NodeJS : v10.16.3 (/usr/local/bin/node)
npm : 6.13.6
OS : macOS Mojave
Xcode : Xcode 11.3.1 Build version 11C504
cordova-plugin-firebase-dynamiclinks conflict with cordova-plugin-firebasex.
so you need to sync Firebase Dependency
look Podfile example
pod 'Firebase/Core', '6.17.0'
pod 'Firebase/Auth', '6.17.0'
pod 'Firebase/Messaging', '6.17.0'
pod 'Firebase/Performance', '6.17.0'
pod 'Firebase/RemoteConfig', '6.17.0'
firebase version is '6.17.0'. this is because of firebasex
so you must change
plugins/cordova-plugin-firebase-dynamiclinks/plugin.xml
<pods>
<pod name="Firebase/Analytics" spec="~> 6.17.0" />
<pod name="Firebase/DynamicLinks" spec="~> 6.17.0" />
</pods>
it have to be same with firebasex's Firebase dependency.
For a while I can not compile my application correctly.
My application uses cordova and Angular 1, I tried with several versions of ipad tablet without success.
I reinstalled the application and updated all the plugins cordova, without success I upgraded cordova, gulp, iOS on my tablet, ionnic, without success too..
Latest configuration :
- ipad 4 Version 10.3.3
- cordova : 7.0.1
- ionic : 2.2.3
- AngularJS 1.X
Plugins List :
cordova-custom-config 3.1.4 "cordova-custom-config"
cordova-plugin-client-certificate-addictic 0.0.1 "Client Certificate"
cordova-plugin-compat 1.1.0 "Compat"
cordova-plugin-console 1.0.7 "Console"
cordova-plugin-device 1.1.6 "Device"
cordova-plugin-file 4.3.3 "File"
cordova-plugin-file-transfer 1.6.3 "File Transfer"
cordova-plugin-inappbrowser 1.7.1 "InAppBrowser"
cordova-plugin-keyboard 1.1.5 "Keyboard"
cordova-plugin-network-information 1.3.3 "Network Information"
cordova-plugin-splashscreen 4.0.3 "Splashscreen"
cordova-plugin-statusbar 2.2.3 "StatusBar"
cordova-plugin-whitelist 1.3.2 "Whitelist"
cordova-sqlite-storage 2.0.4 "Cordova sqlite storage plugin"
ionic-plugin-keyboard 2.2.1 "Keyboard"
Compilation with Console :
‘cordova run iOS —device’
Error in Console bash :
Starting debug of iPad 4 'iPad 4'
(2399acc62866ac2ac6000ad55f470e9e43d69dab) connected through USB...
2017-09-05 09:20:09.735 ios-deploy[9492:9633908] [ !! ] Unable to
locate DeviceSupport directory. This probably means you don't have
Xcode installed, you will need to launch the app manually and logging
output will not be shown! Error: Error code 253 for command:
ios-deploy with args:
--justlaunch,--no-wifi,-d,-b,/Users/agenceaddictic/Apps/crpvapp/platforms/ios/build/device/VigiMedic.app
With Xcode 8.3.3 :
iOS Deployment Target : 10.3 (is the same error with 9.x)
Device iPad 4
Use Release for command-line builds
Default compiler : Apple LLVM 8,1
I launch : « Build and then run the current scheme »
Application Builded but don’t correct running
view screen here
I have a problem when I'm trying to sign the certificate for my ionic iOs platform. The error specifies like this:
I have no idea why the error occurs since my other ionic app project using the same development team works. I've looked in the everywhere but none solved the problem. Does it have anything to do with the plugins installed on my projects?
I'm using XCode 9 beta. Here's my ionic info:
global packages:
#ionic/cli-utils : 1.4.0
Ionic CLI : 3.4.0
local packages:
#ionic/cli-plugin-ionic1 : 2.0.1
Ionic Framework : ionic1 1.3.3
System:
Node : v6.11.0
OS : macOS Sierra
Xcode : Xcode 9.0 Build version 9M136h
ios-deploy : not installed
ios-sim : not installed
npm : 3.10.10
Here the list plugins installed on my project:
com.telerik.plugins.nativepagetransitions 0.6.5 "Native Page Transitions"
cordova-plugin-app-preferences 0.99.3 "AppPreferences"
cordova-plugin-clipboard2 0.1.0 "Clipboard"
cordova-plugin-compat 1.1.0 "Compat"
cordova-plugin-console 1.0.7 "Console"
cordova-plugin-crosswalk-webview 2.3.0 "Crosswalk WebView Engine"
cordova-plugin-device 1.1.6 "Device"
cordova-plugin-facebook4 1.9.1 "Facebook Connect"
cordova-plugin-file 4.3.3 "File"
cordova-plugin-file-transfer 1.6.3 "File Transfer"
cordova-plugin-inappbrowser 1.7.1 "InAppBrowser"
cordova-plugin-network-information 1.3.3 "Network Information"
cordova-plugin-splashscreen 4.0.3 "Splashscreen"
cordova-plugin-statusbar 2.2.3 "StatusBar"
cordova-plugin-whitelist 1.3.2 "Whitelist"
cordova-plugin-x-socialsharing 5.1.8 "SocialSharing"
cordova-plugin-x-toast 2.6.0 "Toast"
cordova-sqlite-storage 2.0.4 "Cordova sqlite storage plugin"
es6-promise-plugin 4.1.0 "Promise"
ionic-plugin-deeplinks 1.0.15 "Ionic Deeplink Plugin"
ionic-plugin-keyboard 2.2.1 "Keyboard"
Make sure your email is enrolled in Apple's $99/year Developer Program.
When someone sends you the developer invite from Apple Developer Portal (now in iTunes Connect): https://itunesconnect.apple.com/access/users
Make sure they check this little box for you to access certificates and profiles: (If they did not, they can go back to the invite and add this permission anytime.)
Nevermind, turns out the ionic-plugin-deeplinks caused the error. I had no idea why, I uninstalled the plugin and then the error resolved.
first of all, take a look into xcode and check if your signing is setup correctly. Furthermore, check under 'capabilities' if there are any actions required, in my case, I had to toggle the push option manually to add the correct entitlements.
You can also have a look at this thread to get any further information...
I have an ionic application that i have been deploying to google play and itunes store successfully. All the current functionality works great on all android devices tested.
For iOS, I am able to see all the functionality working great using
ionic emulate ios --target="iPhone-6-Plus"
(Or any target, really!)
When I build an ipa following the normal steps on https://ionicframework.com/docs/guide/publishing.html ... and upload the ipa to testobject.com and I cannot get the same successes.
For iOS platform 8.0, 8.1, and 8.2 the app will load, but some functionality doesn't work.
For iOS platform 8.3 - 10.1 the app either loads a blank white page, or a red page with an error stack I cannot read.
What are the normal debugging steps for this type of scenario? Like i said i can build to an emulator just fine...
Here is my plugin list.
kirbsah$ ionic plugins list
cordova-plugin-actionsheet 2.3.1 "ActionSheet"
cordova-plugin-app-version 0.1.9 "AppVersion"
cordova-plugin-camera 2.3.0 "Camera"
cordova-plugin-compat 1.1.0 "Compat"
cordova-plugin-console 1.0.4 "Console"
cordova-plugin-device 1.1.3 "Device"
cordova-plugin-splashscreen 4.0.0 "Splashscreen"
cordova-plugin-statusbar 2.2.0 "StatusBar"
cordova-plugin-whitelist 1.3.0 "Whitelist"
cordova-plugin-x-socialsharing 5.1.3 "SocialSharing"
ionic-plugin-deploy 0.6.5 "IonicDeploy"
ionic-plugin-keyboard 2.2.1 "Keyboard"
phonegap-plugin-push 1.8.1 "PushPlugin"
Here is my ionic information
Your system information:
Cordova CLI: 6.4.0
Gulp version: CLI version 3.9.1
Gulp local: Local version 3.9.1
Ionic Framework Version: 1.2.4
Ionic CLI Version: 2.1.4
Ionic App Lib Version: 2.1.2
ios-deploy version: 1.9.0
ios-sim version: 5.0.12
OS: Mac OS X Sierra
Node Version: v7.0.0
Xcode version: Xcode 8.1 Build version 8B62
Any help or direction appreciated. I would assume the problem is somewhere in my xcode build process... but i'm just following documentation.
I am building a Cordova Application in XCode, but I am getting the following error :-
CDVLocation.m 'Cordova/NSArray+Comparisons.h' file not found
cordova platform
Installed platforms: android 5.1.1, ios 4.0.1
Available platforms: amazon-fireos, blackberry10, browser, firefoxos, osx, webos
Mac-de-binov:icooltaxi binov$ cordova plugin
cl.rmd.cordova.dialoggps 0.0.2 "DialogGPS"
com.cordova.plugins.sms 0.1.9 "Cordova SMS Plugin"
cordova-plugin-whitelist 1.2.1 "Whitelist"
in.girish.datagram 0.1.0 "UDP Plugin"
org.apache.cordova.device 0.3.0 "Device"
org.apache.cordova.geolocation 0.3.12 "Geolocation"
org.apache.cordova.splashscreen 1.0.0 "Splashscreen"
How can I fix this issue?