Comments (6)
Thanks for raising this issue and providing logs.
Currently cordova-ios isn't compatible with Xcode 10's new build system, but there are some workarounds documented here.
I'll keep this issue open for us to investigate what we need to change to be compatible with Xcode 10, but wanted to provide that link to workarounds for anyone who has upgraded and is running into this.
from cordova-ios.
same issue after upgrading to xcode 10:
- cordova platform add ios
You have been opted out of telemetry. To change this, run: cordova telemetry on.
Using cordova-fetch for cordova-ios@~4.5.4
Adding ios project...
Creating Cordova project for the iOS platform:
Path: platforms/ios
Package: hexagon.si.ch.mrkapozh
Name: MRKapoZH
iOS project created with [email protected]
Discovered plugin "cordova-plugin-geolocation" in config.xml. Adding it to the project
Installing "cordova-plugin-geolocation" for ios
Adding cordova-plugin-geolocation to package.json
Saved plugin info for "cordova-plugin-geolocation" to config.xml
Discovered plugin "cordova-plugin-network-information" in config.xml. Adding it to the project
Installing "cordova-plugin-network-information" for ios
Adding cordova-plugin-network-information to package.json
Saved plugin info for "cordova-plugin-network-information" to config.xml
Discovered plugin "cordova-plugin-app-event" in config.xml. Adding it to the project
Installing "cordova-plugin-app-event" for ios
Adding cordova-plugin-app-event to package.json
Saved plugin info for "cordova-plugin-app-event" to config.xml
Discovered plugin "cordova-plugin-device" in config.xml. Adding it to the project
Installing "cordova-plugin-device" for ios
Adding cordova-plugin-device to package.json
Saved plugin info for "cordova-plugin-device" to config.xml
Discovered plugin "cordova-plugin-statusbar" in config.xml. Adding it to the project
Installing "cordova-plugin-statusbar" for ios
Adding cordova-plugin-statusbar to package.json
Saved plugin info for "cordova-plugin-statusbar" to config.xml
Discovered plugin "cordova-plugin-vibration" in config.xml. Adding it to the project
Installing "cordova-plugin-vibration" for ios
Adding cordova-plugin-vibration to package.json
Saved plugin info for "cordova-plugin-vibration" to config.xml
Discovered plugin "cordova-plugin-file" in config.xml. Adding it to the project
Installing "cordova-plugin-file" for ios
Installing "cordova-plugin-compat" for ios
Adding cordova-plugin-file to package.json
Saved plugin info for "cordova-plugin-file" to config.xml
Discovered plugin "cordova-custom-config" in config.xml. Adding it to the project
Installing "cordova-custom-config" for ios
Adding cordova-custom-config to package.json
Saved plugin info for "cordova-custom-config" to config.xml
Discovered plugin "cordova-plugin-local-notification" in config.xml. Adding it to the project
Installing "cordova-plugin-local-notification" for ios
Plugin dependency "[email protected]" already fetched, using that version.
Dependent plugin "cordova-plugin-device" already installed on ios.
Installing "cordova-plugin-badge" for ios
Adding cordova-plugin-local-notification to package.json
Saved plugin info for "cordova-plugin-local-notification" to config.xml
Discovered plugin "cordova-plugin-background-fetch" in config.xml. Adding it to the project
Installing "cordova-plugin-background-fetch" for ios
Adding cordova-plugin-background-fetch to package.json
Saved plugin info for "cordova-plugin-background-fetch" to config.xml
Discovered plugin "cordova-plugin-media" in config.xml. Adding it to the project
Installing "cordova-plugin-media" for ios
Plugin dependency "[email protected]" already fetched, using that version.
Dependent plugin "cordova-plugin-file" already installed on ios.
Plugin dependency "[email protected]" already fetched, using that version.
Dependent plugin "cordova-plugin-compat" already installed on ios.
Adding cordova-plugin-media to package.json
Saved plugin info for "cordova-plugin-media" to config.xml
Discovered plugin "cordova-plugin-background-mode" in config.xml. Adding it to the project
Installing "cordova-plugin-background-mode" for ios
Plugin dependency "[email protected]" already fetched, using that version.
Dependent plugin "cordova-plugin-device" already installed on ios.
Adding cordova-plugin-background-mode to package.json
Saved plugin info for "cordova-plugin-background-mode" to config.xml
Discovered plugin "cordova-plugin-app-version" in config.xml. Adding it to the project
Installing "cordova-plugin-app-version" for ios
Adding cordova-plugin-app-version to package.json
Saved plugin info for "cordova-plugin-app-version" to config.xml
Discovered plugin "cordova-plugin-app-preferences" in config.xml. Adding it to the project
Installing "cordova-plugin-app-preferences" for ios
app-settings.json not found: creating a sample file
Adding cordova-plugin-app-preferences to package.json
Saved plugin info for "cordova-plugin-app-preferences" to config.xml
Discovered plugin "cordova-plugin-whitelist" in config.xml. Adding it to the project
Installing "cordova-plugin-whitelist" for ios
Adding cordova-plugin-whitelist to package.json
Saved plugin info for "cordova-plugin-whitelist" to config.xml
Discovered plugin "cordova-android-support-gradle-release" in config.xml. Adding it to the project
Installing "cordova-android-support-gradle-release" for ios
Adding cordova-android-support-gradle-release to package.json
Saved plugin info for "cordova-android-support-gradle-release" to config.xml
cordova-custom-config: Applied custom config from config.xml to /Users/jenkins/Home/workspace/MR_KapoZH_9.2_iOS_Test/src/platforms/ios/MRKapoZH/MRKapoZH-Info.plist
ios settings bundle was successfully generated
--save flag or autosave detected
Saving ios@~4.5.5 into config.xml file ...
- cordova-set-version -v=1.0.4 -b=4
- cordova build ios --release --device
You have been opted out of telemetry. To change this, run: cordova telemetry on.
cordova-custom-config: Skipping auto-restore of config file backup(s)
cordova-custom-config: Applied custom config from config.xml to /Users/jenkins/Home/workspace/MR_KapoZH_9.2_iOS_Test/src/platforms/ios/MRKapoZH/MRKapoZH-Info.plist
ios settings bundle was successfully generated
Reading build config file:
Building project: /Users/jenkins/Home/workspace/MR_KapoZH_9.2_iOS_Test/src/platforms/ios/MRKapoZH.xcworkspace
Configuration: Release
Platform: device
User defaults from command line:
IDEArchivePathOverride = /Users/jenkins/Home/workspace/MR_KapoZH_9.2_iOS_Test/src/platforms/ios/MRKapoZH.xcarchive
Build settings from command line:
CONFIGURATION_BUILD_DIR = /Users/jenkins/Home/workspace/MR_KapoZH_9.2_iOS_Test/src/platforms/ios/build/device
SHARED_PRECOMPS_DIR = /Users/jenkins/Home/workspace/MR_KapoZH_9.2_iOS_Test/src/platforms/ios/build/sharedpch
Build settings from configuration file '/Users/jenkins/Home/workspace/MR_KapoZH_9.2_iOS_Test/src/platforms/ios/cordova/build-release.xcconfig':
CLANG_ALLOW_NON_MODULAR_INCLUDES_IN_FRAMEWORK_MODULES = YES
CODE_SIGN_ENTITLEMENTS =
CODE_SIGN_IDENTITY = iPhone Distribution
DEVELOPMENT_TEAM = 8X37PBU852
ENABLE_BITCODE = NO
HEADER_SEARCH_PATHS = "$(TARGET_BUILD_DIR)/usr/local/lib/include" "$(OBJROOT)/UninstalledProducts/include" "$(OBJROOT)/UninstalledProducts/$(PLATFORM_NAME)/include" "$(BUILT_PRODUCTS_DIR)"
OTHER_LDFLAGS = -ObjC
PROVISIONING_PROFILE = 705ac762-70fe-488a-9573-8236e7424717
SWIFT_OBJC_BRIDGING_HEADER =
error: archive not found at path '/Users/jenkins/Home/workspace/MR_KapoZH_9.2_iOS_Test/src/platforms/ios/MRKapoZH.xcarchive'
** EXPORT FAILED **
(node:7560) UnhandledPromiseRejectionWarning: Error code 65 for command: xcodebuild with args: -exportArchive,-archivePath,MRKapoZH.xcarchive,-exportOptionsPlist,/Users/jenkins/Home/workspace/MR_KapoZH_9.2_iOS_Test/src/platforms/ios/exportOptions.plist,-exportPath,/Users/jenkins/Home/workspace/MR_KapoZH_9.2_iOS_Test/src/platforms/ios/build/device
(node:7560) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1)
(node:7560) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
from cordova-ios.
Thanks for raising this issue and providing logs.
Currently cordova-ios isn't compatible with Xcode 10's new build system, but there are some workarounds documented here.
I'll keep this issue open for us to investigate what we need to change to be compatible with Xcode 10, but wanted to provide that link to workarounds for anyone who has upgraded and is running into this.
Hi dpogue,
I followed the workaround instructions by changing the build system to Legacy. The issue isn't resolved yet. My code was running fine and was even published to App Store before I upgraded to Xcode 10.1.
Is there anything else I need to do?
Thanks in anticipation of your response.
from cordova-ios.
Hi, i am trying to build cordova ios project with Xcode 10 on command line. I am getting below error
Running command: /Users/zs/Development/svn/ICFieldView/trunk/root/ICFieldView.Mobile/mJSCS/platforms/ios/cordova/build
Cordova can only run in Xcode version 4.6 or greater.
Error: /Users/zs/Development/svn/ICFieldView/trunk/root/ICFieldView.Mobile/mJSCS/platforms/ios/cordova/build: Command failed with exit code 2
at ChildProcess.whenDone (/usr/local/lib/node_modules/cordova/node_modules/cordova-lib/src/cordova/superspawn.js:135:23)
at emitTwo (events.js:106:13)
at ChildProcess.emit (events.js:191:7)
at maybeClose (internal/child_process.js:877:16)
at Process.ChildProcess._handle.onexit (internal/child_process.js:226:5)
It fails, even when i use, --buildFlag='-UseModernBuildSystem=0'
we are using Cordova version 3.5.0-0.2.7
and cordova ios version 3.5.
Please let me know how to fix the issue. On Xcode 9.4, the build is working successfully.
from cordova-ios.
Open a new issue @ashishkumar2804 please - here this will get overlooked and ignored.
from cordova-ios.
Incase it helps anyone I was able to fix this with the Legacy Build setting and in src-cordova/platforms/ios/cordova/build-release.xcconfig
change it to:
CODE_SIGN_IDENTITY = iPhone Developer
CODE_SIGN_IDENTITY[sdk=iphoneos*] = iPhone Developer
Just don't forget to do it again after a remove & re-add of platform ios. 😄
from cordova-ios.
Related Issues (20)
- Please remove org_apache_cordova_UIView_Extension because it isn't necessary since iOS 8.
- SplashScreen not loading on [email protected] HOT 8
- Cannot run new iOS app since latest upgrade HOT 18
- Trouble to open Instagram App HOT 2
- Any alternative to CDVCommandDelegateImpl which is removed from public classes? HOT 6
- [Next Major] Delete bin/cordova_plist_to_config_xml script
- Several template project bin scripts are broken
- Add preferences to config.xml to control which are the "Supported Destinations"
- Issue with `<privacy-manifest>` and `cordora prepare ios` HOT 3
- The CDVURLProtocol no longer exists, so how should we modify the interception? HOT 3
- The startURLSchemeTask method in CDVURLSchemeHandler was not executed HOT 2
- Copy deployment-target from root config.xml to platform-specific config.xml before usage in Podfile HOT 5
- WKWebViewConfiguration is always ignored
- Missing API declaration on iOS app submission to App Store HOT 5
- CDVPlugin's viewController should just be a CDVViewController
- CDVWebViewUIDelegate should take a CDVViewController
- Cordova ios 7.1.0 - Build failed with "Command failed with exit code 65" HOT 4
- Several version checks fail after cordova-ios platform add [email protected] HOT 2
- Target Identity info missing Display Name, Version, Build HOT 1
- plugin_not_installed errors after upgrading from 6.3.0 HOT 7
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cordova-ios.