I update my Cordova ios to version 6 because of apple email that says ( Deprecated API Usage - existing app that use UIWebView are no longer accepted) ,but after that i keep getting this build error,
The following build commands failed:
CompileC /Users/moesaif/Library/Developer/Xcode/DerivedData/مفسر_أحلامي-epzhtxsuxnuafngaxollgqmkcrww/Build/Intermediates.noindex/مفسر\ أحلامي.build/Debug-iphonesimulator/مفسر\ أحلامي.build/Objects-normal/x86_64/CDVFileTransfer.o /Users/moesaif/Desktop/Dreams/platforms/ios/مفسر\ أحلامي/Plugins/cordova-plugin-file-transfer/CDVFileTransfer.m normal x86_64 objective-c com.apple.compilers.llvm.clang.1_0.compiler
ionic Cordova platform ls :
Installed platforms:
android 7.1.4
browser 6.0.0
ios 6.1.1
Available platforms:
electron ^1.0.0
osx ^5.0.0
windows ^7.0.0
any help please..!
Thanks.
You need to update the plugin to latest version. If it still uses UIWebView, then you need to update it manually to support WKWebView.
cordova-plugin-file-transfer is deprecated and seems not working with the ios#6.1.1 .
I still use it with ios#5.1.1 and the flag in config.xml to use WKWebview:
<preference name="WKWebViewOnly" value="true" />
Before sending to apple, search and check in Xcode, that you don't have any mention to UIWebview.
Sometimes a clean platforms is needed or you still have and old InAppBrowser version
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!
fastlane finished with errors relating to automatic_code_signing. I’m not sure what this means and how to fix it, but it’s an error I hadn’t gotten before. I’m on Ionic v3
This has to do with the iOS platform not being up to date.
iOS builds including cordova-ios v4.5.5 or earlier will fail with this error in Appflow. This issue was corrected in cordova-ios v5.0.0. Updating to a current cordova-ios release will resolve the problem.
To remove and reinstall the iOS platform:
ionic cordova platform rm ios
ionic cordova platform add ios#5.1.1 //the latest release of the current major version is recommended.
This
example specifies the latest version at the time of writing
Source here
After upgrading to xcode 10.2 my ionic for ios project stopped building using below command
ionic cordova build ios -- --buildFlag="-UseModernBuildSystem=0"
i tried to upgrade cordova-ios#5.0.0 and remove and readd ios platform but no luck.
The “Swift Language Version” (SWIFT_VERSION) build setting must be set to a supported value for targets which use Swift. Supported values are: 4.0, 4.2, 5.0. This setting can be set in the build settings editor.
Code Signing Error: Code signing is required for product type 'Application' in SDK 'iOS 12.2'
** ARCHIVE FAILED **
The following build commands failed:
Check dependencies
(1 failure)
xcodebuild: Command failed with exit code 65
[ERROR] An error occurred while running subprocess cordova.
cordova build ios --buildFlag=-UseModernBuildSystem=0 exited with exit code 65.
Re-running this command with the --verbose flag may provide more information.
I ran into the same error. I first tried to switch the Swift Language version in the Xcode build setting and quickly realized that some plugins written in Swift broke. Thankfully the plugin which broke for me was QR Scanner which is well maintained and has been updated for Swift 5.
So what I did to fix it was first run the following node commands to find and update the outdated node packages.
npm outdated
npm update
Then I identified the outdated/broken cordova plugins, removed them, then reinstalled the latest versions. Using
cordova plugin list
to make sure everything was updating correctly, cross referencing with the version numbers with the plugins repo. Then finally I added this to the config.xml
<preference name="UseSwiftLanguageVersion" value="5" />
and everything built successfully when running,
ionic cordova build ios -- --buildFlag="-UseModernBuildSystem=0"
Unfortunately, if you're using a cordova plugin that is written in Swift and is not well maintained you're out of luck. You can try to update the plugin yourself if you're brave.
Hopefully this was helpful and doesn't require you to role back your Xcode, losing the ability to build for the latest version of iOs.
You should go with below steps-
Open your project in Xcode by click on workspace file in platforms >> ios >> PROJECT_NAME.xcworkspace
Go for Build Settings
Now search "Swift Language Version"
Change the version to 4 or 5(whichever required)
run below command
Ionic cordova build ios --buildFlag="-UseModernBuildSystem=0"
Just add this plugin
cordova plugin add cordova-plugin-add-swift-support --save
Or if you already added then just remove this plugin and add again.
I have upgraded my environment from ionic 1 to ionic 3.19.1. However, my project is still ionic v1 (or if im not mistaken below v1, not sure)
I ran the command
ionic cordova build ios --v1
and there is this failure.
Discovered plugin "cordova-plugin-console" in config.xml. Adding it to the project
Installing "cordova-plugin-console" for ios
Plugin doesn't support this project's cordova-ios version. cordova-ios: 4.5.4, failed version requirement: <4.5.0
Skipping 'cordova-plugin-console' for ios
what does it mean and how to resolve it?
My environment is below:
ionic version 3.19.1
cordova version 8.0.0
npm version 5.6.0
macos High Sierra 10.13.1
xcode 9.2
You simply need to uninstall cordova-plugin-console.
Check cordova-ios 4.5.0 release here.
Important! If you have included cordova-plugin-console in your project, you must remove it, otherwise your project will not build.
It is now integrated into cordova-ios platform(4.5.0 onwards).
Your current version is cordova-ios: 4.5.4 according to the error message.
Here is the issue tracker of integration into cordova-ios.
Do:
ionic cordova plugin remove cordova-plugin-console
I'm following instructions at http://moduscreate.com/writing-a-cordova-plugin-in-swift-for-ios/ to generate a Swift based Cordova plugin for IOS.
When I get as far as adding the IOS platform via command 'cordova platform add ios' I'm expecting something like the example:
Adding ios project...
iOS project created with cordova-ios#4.0.1
Discovered plugin "cordova-plugin-whitelist" in config.xml. Installing to the project
Fetching plugin "cordova-plugin-whitelist#1" via npm
Installing "cordova-plugin-whitelist" for ios
Installing "cordova-plugin-add-swift-support" for ios
Update IOS build setting SWIFT_OBJC_BRIDGING_HEADER to:
/Users/simon/projects/modus/swiftplugin/modusechopluginswift/testapp2/platforms/ios/TestApp/Bridging-Header.h
Update IOS build setting EMBEDDED_CONTENT_CONTAINS_SWIFT to: YES
What I actually get is:
Adding ios project...
Creating Cordova project for the iOS platform:
Path: platforms/ios
Package: com.moduscreate.testapp
Name: TestApp
iOS project created with cordova-ios#4.2.1
Installing "cordova-plugin-add-swift-support" for ios
Error: undefined is not a function
The platforms folder has a generated IOS subfolder with content.
I assume the problem is with the cordova-plugin-add-swift-support plugin.
I'm running xCode 8.0 on macOS Sierra 10.12.
Does anybody have any ideas?
I'm the author of the tutorial you were following. I recently updated it to address changes for Swift 3, so if you want to try this with the latest Cordova, XCode 8.2 and Swift 3 syntax, I've produced a new tutorial here. Following this may solve your issues.