ionic 4 ios fails to build due to swift version 3Version vs build in XcodeFile is universal (three slices), but it does not contain a(n) ARMv7-s slice error for static libraries on iOS, anyway to bypass?Command failed with exit code 2 in ionicwhen i type ionic cordova build androidError in building android app with ionic cordova buildXcode 9 Swift Language Version (SWIFT_VERSION)Ionic cordova build android error fail to exportError ionic cordova build --release androidIonic 3 blank project cordova run iOS not working
Potential new partner angry about first collaboration - how to answer email to close up this encounter in a graceful manner
Can pay be witheld for hours cleaning up after closing time?
Can a character spend multiple hit dice at level 1?
What is the hex versus octal timeline?
How to write triplets in 4/4 time without using a 3 on top of the notes all the time
How big would a Daddy Longlegs Spider need to be to kill an average Human?
How would one country purchase another?
How do I make distance between concentric circles equal?
Why can't an Airbus A330 dump fuel in an emergency?
Was Switzerland really impossible to invade during WW2?
Justifying the use of directed energy weapons
Why aren't RCS openings an issue for spacecraft heat shields?
Why is observed clock rate < 3MHz on Arduino Uno?
Brexit and backstop: would changes require unanimous approval by all EU countries? Does Ireland hold a veto?
What does it mean to have a subnet mask /32?
Solve a logarithmic equation by NSolve
If all stars rotate, why was there a theory developed, that requires non-rotating stars?
Is there a known non-euclidean geometry where two concentric circles of different radii can intersect? (as in the novel "The Universe Between")
How to persuade recruiters to send me the Job Description?
How to compare two different formulations of a problem?
Is a butterfly one or two animals?
Most practical knots for hitching a line to an object while keeping the bitter end as tight as possible, without sag?
Shouldn't the "credit score" prevent Americans from going deeper and deeper into personal debt?
Defense against attacks using dictionaries
ionic 4 ios fails to build due to swift version 3
Version vs build in XcodeFile is universal (three slices), but it does not contain a(n) ARMv7-s slice error for static libraries on iOS, anyway to bypass?Command failed with exit code 2 in ionicwhen i type ionic cordova build androidError in building android app with ionic cordova buildXcode 9 Swift Language Version (SWIFT_VERSION)Ionic cordova build android error fail to exportError ionic cordova build --release androidIonic 3 blank project cordova run iOS not working
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;
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.
ios ionic-framework ionic4
|
show 1 more comment
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.
ios ionic-framework ionic4
So I tried to convert the project from Swift 3 to Swift 4.2 using Xcode 10.1. However, some of the plugins broke. Then I tried to fix, but it ended a big mess. So I just ended up using Xcode 10.1 for development for now. You can download Xcode 10.1https://developer.apple.com/download/more/
– Bao Pham
Mar 29 at 21:33
2
Xcode 10.1 doesn't run application on iPhone with iOS 12.2. So it's a big issue, now we can only run apps on simulator. It would be nice to have a proper solution.
– Andrey Klochkov
Apr 9 at 19:24
@BaoPham Yes - but in my case when the user upgrades to iOS 12.2 on their iPad the app still won't run.
– P.Brian.Mackey
Apr 23 at 17:20
@P.Brian.Mackey I think the ionic team has updated their Swift code. Check again.
– Bao Pham
May 3 at 18:41
1
@P.Brian.Mackey have you tried install this?https://www.npmjs.com/package/cordova-plugin-add-swift-support
and add<preference name="UseSwiftLanguageVersion" value="5" />
intoconfig.js
?
– Bao Pham
May 4 at 4:30
|
show 1 more comment
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.
ios ionic-framework ionic4
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.
ios ionic-framework ionic4
ios ionic-framework ionic4
asked Mar 27 at 16:02
Moblize ITMoblize IT
6113 bronze badges
6113 bronze badges
So I tried to convert the project from Swift 3 to Swift 4.2 using Xcode 10.1. However, some of the plugins broke. Then I tried to fix, but it ended a big mess. So I just ended up using Xcode 10.1 for development for now. You can download Xcode 10.1https://developer.apple.com/download/more/
– Bao Pham
Mar 29 at 21:33
2
Xcode 10.1 doesn't run application on iPhone with iOS 12.2. So it's a big issue, now we can only run apps on simulator. It would be nice to have a proper solution.
– Andrey Klochkov
Apr 9 at 19:24
@BaoPham Yes - but in my case when the user upgrades to iOS 12.2 on their iPad the app still won't run.
– P.Brian.Mackey
Apr 23 at 17:20
@P.Brian.Mackey I think the ionic team has updated their Swift code. Check again.
– Bao Pham
May 3 at 18:41
1
@P.Brian.Mackey have you tried install this?https://www.npmjs.com/package/cordova-plugin-add-swift-support
and add<preference name="UseSwiftLanguageVersion" value="5" />
intoconfig.js
?
– Bao Pham
May 4 at 4:30
|
show 1 more comment
So I tried to convert the project from Swift 3 to Swift 4.2 using Xcode 10.1. However, some of the plugins broke. Then I tried to fix, but it ended a big mess. So I just ended up using Xcode 10.1 for development for now. You can download Xcode 10.1https://developer.apple.com/download/more/
– Bao Pham
Mar 29 at 21:33
2
Xcode 10.1 doesn't run application on iPhone with iOS 12.2. So it's a big issue, now we can only run apps on simulator. It would be nice to have a proper solution.
– Andrey Klochkov
Apr 9 at 19:24
@BaoPham Yes - but in my case when the user upgrades to iOS 12.2 on their iPad the app still won't run.
– P.Brian.Mackey
Apr 23 at 17:20
@P.Brian.Mackey I think the ionic team has updated their Swift code. Check again.
– Bao Pham
May 3 at 18:41
1
@P.Brian.Mackey have you tried install this?https://www.npmjs.com/package/cordova-plugin-add-swift-support
and add<preference name="UseSwiftLanguageVersion" value="5" />
intoconfig.js
?
– Bao Pham
May 4 at 4:30
So I tried to convert the project from Swift 3 to Swift 4.2 using Xcode 10.1. However, some of the plugins broke. Then I tried to fix, but it ended a big mess. So I just ended up using Xcode 10.1 for development for now. You can download Xcode 10.1
https://developer.apple.com/download/more/
– Bao Pham
Mar 29 at 21:33
So I tried to convert the project from Swift 3 to Swift 4.2 using Xcode 10.1. However, some of the plugins broke. Then I tried to fix, but it ended a big mess. So I just ended up using Xcode 10.1 for development for now. You can download Xcode 10.1
https://developer.apple.com/download/more/
– Bao Pham
Mar 29 at 21:33
2
2
Xcode 10.1 doesn't run application on iPhone with iOS 12.2. So it's a big issue, now we can only run apps on simulator. It would be nice to have a proper solution.
– Andrey Klochkov
Apr 9 at 19:24
Xcode 10.1 doesn't run application on iPhone with iOS 12.2. So it's a big issue, now we can only run apps on simulator. It would be nice to have a proper solution.
– Andrey Klochkov
Apr 9 at 19:24
@BaoPham Yes - but in my case when the user upgrades to iOS 12.2 on their iPad the app still won't run.
– P.Brian.Mackey
Apr 23 at 17:20
@BaoPham Yes - but in my case when the user upgrades to iOS 12.2 on their iPad the app still won't run.
– P.Brian.Mackey
Apr 23 at 17:20
@P.Brian.Mackey I think the ionic team has updated their Swift code. Check again.
– Bao Pham
May 3 at 18:41
@P.Brian.Mackey I think the ionic team has updated their Swift code. Check again.
– Bao Pham
May 3 at 18:41
1
1
@P.Brian.Mackey have you tried install this?
https://www.npmjs.com/package/cordova-plugin-add-swift-support
and add <preference name="UseSwiftLanguageVersion" value="5" />
into config.js
?– Bao Pham
May 4 at 4:30
@P.Brian.Mackey have you tried install this?
https://www.npmjs.com/package/cordova-plugin-add-swift-support
and add <preference name="UseSwiftLanguageVersion" value="5" />
into config.js
?– Bao Pham
May 4 at 4:30
|
show 1 more comment
1 Answer
1
active
oldest
votes
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.
add a comment |
Your Answer
StackExchange.ifUsing("editor", function ()
StackExchange.using("externalEditor", function ()
StackExchange.using("snippets", function ()
StackExchange.snippets.init();
);
);
, "code-snippets");
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "1"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55381659%2fionic-4-ios-fails-to-build-due-to-swift-version-3%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
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.
add a comment |
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.
add a comment |
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.
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.
edited May 14 at 20:58
answered May 14 at 20:52
Christopher WhitneyChristopher Whitney
11 bronze badge
11 bronze badge
add a comment |
add a comment |
Got a question that you can’t ask on public Stack Overflow? Learn more about sharing private information with Stack Overflow for Teams.
Got a question that you can’t ask on public Stack Overflow? Learn more about sharing private information with Stack Overflow for Teams.
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55381659%2fionic-4-ios-fails-to-build-due-to-swift-version-3%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
So I tried to convert the project from Swift 3 to Swift 4.2 using Xcode 10.1. However, some of the plugins broke. Then I tried to fix, but it ended a big mess. So I just ended up using Xcode 10.1 for development for now. You can download Xcode 10.1
https://developer.apple.com/download/more/
– Bao Pham
Mar 29 at 21:33
2
Xcode 10.1 doesn't run application on iPhone with iOS 12.2. So it's a big issue, now we can only run apps on simulator. It would be nice to have a proper solution.
– Andrey Klochkov
Apr 9 at 19:24
@BaoPham Yes - but in my case when the user upgrades to iOS 12.2 on their iPad the app still won't run.
– P.Brian.Mackey
Apr 23 at 17:20
@P.Brian.Mackey I think the ionic team has updated their Swift code. Check again.
– Bao Pham
May 3 at 18:41
1
@P.Brian.Mackey have you tried install this?
https://www.npmjs.com/package/cordova-plugin-add-swift-support
and add<preference name="UseSwiftLanguageVersion" value="5" />
intoconfig.js
?– Bao Pham
May 4 at 4:30