Good Morning!
Well I've been maintaining an ionic Cordova app but I'm having to upgrade it to the Iphone and I'm not getting it I've already searched a lot in various corners but I still can not solve my problem.
Log error
https://pastebin.com/f6c9N32p
Ionic V1 Info
cli packages: (/usr/local/lib/node_modules)
#ionic/cli-utils : 1.19.0
ionic (Ionic CLI) : 3.19.0
global packages:
cordova (Cordova CLI) : 7.1.0
local packages:
Cordova Platforms : android 6.3.0 ios 4.5.0
Ionic Framework : ionic1 1.1.0
System:
ios-deploy : 1.9.2
Node : v8.9.3
npm : 5.5.1
OS : macOS High Sierra
Xcode : Xcode 9.2 Build version 9C40b
Environment Variables:
ANDROID_HOME : not set
Misc:
backend : pro
Plugin List
cordova-plugin-console 1.0.7 "Console"
cordova-plugin-device 1.1.3 "Device"
cordova-plugin-facebook4 1.9.1 "Facebook Connect"
cordova-plugin-inappbrowser 1.6.0-dev "InAppBrowser"
cordova-plugin-splashscreen 4.0.0 "Splashscreen"
cordova-plugin-statusbar 2.2.0 "StatusBar"
cordova-plugin-whitelist 1.3.0 "Whitelist"
ionic-plugin-keyboard 2.2.1 "Keyboard"
phonegap-plugin-push 2.1.2 "PushPlugin"
Setting the "Build Active Architecture Only" to 'Yes' resolved the same issue on my end.
Build Active Architecture Only is on Xcode -> Build Settings
Did you try to change value to "No" of Enable Bitcode
XCode ss
Ok, so here is my solution, Go to the general properties, and uncheck the "Automatically manage signing" checkbox, and then check it again
Related
ionic 3 cordova branch sdk plugin not working in ios build its giving “branch.h file not found” error
System info:
Ionic:
Ionic CLI : 6.10.2 (/usr/local/lib/node_modules/#ionic/cli) Ionic
Framework : ionic-angular 3.9.2 #ionic/app-scripts : 3.2.4
Cordova:
Cordova CLI : 8.1.1 (cordova-lib#8.1.0) Cordova Platforms : ios 4.5.5
Cordova Plugins : cordova-plugin-ionic-keyboard 2.1.3,
cordova-plugin-ionic-webview 1.2.1, (and 15 other plugins)
Utility:
cordova-res (update available: 0.15.1) : 0.6.0 native-run (update
available: 1.0.0) : 0.2.9
System:
ios-deploy : 1.9.4 NodeJS : v10.16.3 (/usr/local/bin/node) npm :
6.13.4 OS : macOS Catalina Xcode : Xcode 11.5 Build version 11E608c
A .h file is a header file that belongs to the plugin's native code.
If that file is not found, its the plugin's code that is not properly available in the project. It either has been deleted after installation, or it was not included when the plugin was installed.
Check the plugin's code on Github to be sure which of these is the case. If the code being installed is missing the file, try installing a different branch of the plugin.
I'm writing an app with Ionic v1, AngularJS 1.5 and Cordova cli v8.
Last week I updated my Mac OS (mac os Catalina 10.15.5) and now I'm having trouble launching app onto my ios emulators.
This is how I try to run my app: cordova run ios --emulator
cordova requirements ios
Requirements check results for android:
Java JDK: installed 1.8.0
Android SDK: installed true
Android target: installed 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.5
ios-deploy: installed 1.10.0
CocoaPods: installed 1.9.0
ionic info
[WARN] Bad integration name: gulp
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 5.1.0
Cordova Plugins : cordova-plugin-ionic-webview 5.0.0, (and 17 other plugins)
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.5 Build version 11E608c
cordova plugins list
cordova-android-support-gradle-release 3.0.1 "cordova-android-support-gradle-release"
cordova-plugin-camera 4.1.0 "Camera"
cordova-plugin-compat 1.2.0 "Compat"
cordova-plugin-customurlscheme 5.0.1 "Custom URL scheme"
cordova-plugin-device 2.0.3 "Device"
cordova-plugin-file 6.0.2 "File"
cordova-plugin-file-transfer 1.7.1 "File Transfer"
cordova-plugin-geolocation 4.0.2 "Geolocation"
cordova-plugin-inappbrowser 4.0.0 "InAppBrowser"
cordova-plugin-ionic-webview 5.0.0 "cordova-plugin-ionic-webview"
cordova-plugin-network-information 2.0.2 "Network Information"
cordova-plugin-safariviewcontroller 1.6.0 "SafariViewController"
cordova-plugin-save-image 0.3.0 "SaveImage"
cordova-plugin-settings-hook 0.2.7 "Cordova Settings Hooks"
cordova-plugin-splashscreen 5.0.4 "Splashscreen"
cordova-plugin-statusbar 2.4.3 "StatusBar"
cordova-plugin-whitelist 1.3.4 "Whitelist"
cordova.plugins.diagnostic 4.0.12 "Diagnostic"
ionic-plugin-keyboard 2.2.1 "Keyboard"
This is the error that I'm getting:
** BUILD SUCCEEDED **
Deploying to simulator
No target specified for emulator. Deploying to "iPhone-SE--2nd-generation-, 13.5" simulator.
Running command: /Users/aubrey/Documents/Repos/selfserviceapp/node_modules/ios-sim/bin/ios-sim launch /Users/aubrey/Documents/Repos/selfserviceapp/platforms/ios/build/emulator/Self Service.app --devicetypeid com.apple.CoreSimulator.SimDeviceType.iPhone-SE--2nd-generation-, 13.5 --log /Users/aubrey/Documents/Repos/selfserviceapp/platforms/ios/cordova/console.log --exit
[ios-sim] device.name: iPhone SE (2nd generation)
[ios-sim] device.runtime: iOS 13.5
device.id: 6FCCD0AD-2E43-489A-B623-4D9AAA667637
[ios-sim] Simulator already running.
[ios-sim] An error was encountered processing the command (domain=NSPOSIXErrorDomain, code=2):
Failed to install the requested application
An application bundle was not found at the provided path.
Provide a valid path to the desired application bundle.
[ios-sim] An error was encountered processing the command (domain=FBSOpenApplicationServiceErrorDomain, code=1):
The request to open "com.softworks.selfservice.app" failed.
The request was denied by service delegate (SBMainWorkspace) for reason: NotFound ("Application "com.softworks.selfservice.app" is unknown to FrontBoard").
Underlying error (domain=FBSOpenApplicationErrorDomain, code=4):
[ios-sim] The operation couldn’t be completed. Application "com.softworks.selfservice.app" is unknown to FrontBoard.
Application "com.softworks.selfservice.app" is unknown to FrontBoard.
com.softworks.selfservice.app: -1
[ios-sim] logPath: /Users/aubrey/Documents/Repos/selfserviceapp/platforms/ios/cordova/console.log
Simulator successfully started via `ios-sim`.
I tried this on a brand new project by cordova create hello and it does work for this brand new app but not for my project.
Edit correction: I created a fresh project with the Cordova 8.1.2 cli and tried to run it in the emulator and I got the same result.
What I have tried:
deleted node_modules, bower_components, plugins folders
tried Cordova platform rm ios & Cordova platform add ios
I did quite a research on this one, and even though it is a very common issue none of the solutions worked for me so I keep getting the dreaded:
ITMS-90809: Deprecated API Usage - New apps that use UIWebView are no longer accepted. Instead, use WKWebView for improved security and reliability
My configuration is this:
Ionic:
Ionic CLI : 6.10.1 (/usr/local/lib/node_modules/#ionic/cli)
Ionic Framework : ionic-angular 3.9.2
#ionic/app-scripts : 3.2.4
Cordova:
Cordova CLI : 9.0.0 (cordova-lib#9.0.1)
Cordova Platforms : android 8.1.0, ios 4.2.0, windows 4.4.2
Cordova Plugins : cordova-plugin-ionic-webview 5.0.0, (and 13 other plugins)
Utility:
cordova-res : not installed
native-run : not installed
System:
NodeJS : v10.16.2 (/usr/local/bin/node)
npm : 6.14.5
OS : macOS Catalina
Xcode : Xcode 11.5 Build version 11E608c
Plugins:
com.verso.cordova.clipboard 0.1.0 "Clipboard"
cordova-clipboard 1.3.0 "Clipboard"
cordova-plugin-camera 4.1.0 "Camera"
cordova-plugin-crop 0.3.1 "CropPlugin"
cordova-plugin-device 1.1.4 "Device"
cordova-plugin-file 6.0.2 "File"
cordova-plugin-ionic-webview 5.0.0 "cordova-plugin-ionic-webview"
cordova-plugin-splashscreen 4.0.3 "Splashscreen"
cordova-plugin-statusbar 2.4.1 "StatusBar"
cordova-plugin-whitelist 1.3.1 "Whitelist"
cordova-plugin-x-socialsharing 5.6.3 "SocialSharing"
cordova-plugin-x-toast 2.6.0 "Toast"
cordova-sqlite-storage 2.2.0 "Cordova sqlite storage plugin"
es6-promise-plugin 4.2.2 "Promise"
ionic-plugin-keyboard 2.2.1 "Keyboard"
phonegap-plugin-barcodescanner 7.0.2 "BarcodeScanner"
uk.co.workingedge.cordova.plugin.sqliteporter 1.1.1 "sqlite porter"
Could anyone identify something that screams "this one uses UIWebView and you should change it!" ?
UPDATE:
In order to fix the issue I followed these steps:
Made sure that cordova-plugin-ionic-webview was in version >= 5.0.0
Added
<platform name="ios">
<preference name="WKWebViewOnly" value="true" />
...
</platform>
To config.xml
updated ionic npm install -g ionic#latest
updated cordova npm install -g cordova#latest
updated ionic scripts npm install #ionic/app-scripts#latest
Then removed the iOS platform ionic cordova platform rm ios
Re-added the iOS platform ionic cordova platform add ios
and rebuild it ionic cordova prepare ios
I have fixed my app for the exact issue recently and Here are the steps I have followed to fix the issue:
1) Ensure your cordova-plugin-ionic-webview is updated to the latest version 5.0.0. You need to run these two commands to do that.
ionic cordova plugin remove cordova-plugin-ionic-webview
ionic cordova plugin add cordova-plugin-ionic-webview#latest
2) Ensure your cordova-ios is updated to the latest version 6.0.0. Run this command to update it.
npm install cordova-ios#latest --save
3) Check your package.json to see if the versions are updated for both cordova-ios and cordova-plugin-ionic-webview.
4) Ensure you add WKWebViewOnly preference to config.xml file.
<platform name="ios">
<preference name="WKWebViewOnly" value="true" />
...
</platform>
5) This is the most important step. Ensure you remove the ios platform and add it again. Run these commands to remove and add the ios platform.
ionic cordova platform rm ios
ionic cordova platform add ios
Now, when you build the ios app and publish it to the app store, you can see the issue will be fixed.
While building for iOS, we are now receiving this message:
clang: error: no such file or directory: '/Volumes/Trabalho/AppName/platforms/ios/Pods/Target Support Files/Pods-AppName/Pods-AppName-dummy.m'
My Ionic info:
Ionic:
Ionic CLI : 5.2.3 (/usr/local/lib/node_modules/ionic)
Ionic Framework : ionic-angular 3.9.2
#ionic/app-scripts : 3.2.4
Cordova:
Cordova CLI : 9.0.0 (cordova-lib#9.0.1)
Cordova Platforms : ios 5.0.1
Cordova Plugins : cordova-plugin-ionic-keyboard 2.1.3, cordova-plugin-ionic-webview 1.2.1, (and 13 other plugins)
Utility:
cordova-res : 0.6.0
native-run : 0.2.7 (update available: 0.2.8)
System:
ios-deploy : 2.0.0
ios-sim : 8.0.1
NodeJS : v10.15.3 (/usr/local/bin/node)
npm : 6.9.0
OS : macOS High Sierra
Xcode : Xcode 10.1 Build version 10B61
Does anyone has any idea of what is happening? Yesterday the code was building correctly, now it is giving this crazy error...
Craziness... Problem was that "AppName" has spaces and accented characters. Since removing spaces and accented characters, build has resumed working.
I had no problem with this until the update of CocoaPods to 1.7.4.
Anybody facing the same situation?
** EXPORT FAILED **
Error: Error code 70 for command: xcodebuild with args:
-exportArchive,-archivePath,MyApp.xcarchive,-exportOptionsPlist,/Users/yeezy/cbe/platforms/ios/exportOptions.plist,-exportPath,/Users/yeezy/cbe/platforms/ios/build/device
this my ionic info;
global packages:
#ionic/cli-utils : 1.3.0
Cordova CLI : 7.0.1
Ionic CLI : 3.3.0
local packages:
#ionic/app-scripts : 1.3.7
#ionic/cli-plugin-cordova : 1.3.0
#ionic/cli-plugin-ionic-angular : 1.3.0
Cordova Platforms : ios 4.4.0
Ionic Framework : ionic-angular 3.3.0
System:
Node : v6.10.3
OS : macOS Sierra
Xcode : Xcode 8.3.2 Build version 8E2002
ios-deploy : 1.9.1
ios-sim : 5.0.13
somebody help?
I ran into a similar problem with my ionic1 test app. What happened to me was first I had to change the development team in xcode. Then, still in xcode, I updated the bundle identifier. Finally to resolve my issue I changed the config.xml file that is at the root of my ionic app. I changed the id attribute of the widget element to match the bundle identifier that I set in xcode.