Skip to content

Fix build for iOS #1692

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Apr 19, 2016
Merged

Fix build for iOS #1692

merged 2 commits into from
Apr 19, 2016

Conversation

rosen-vladimirov
Copy link
Contributor

@rosen-vladimirov rosen-vladimirov commented Apr 19, 2016

Cocoapods have versions like 1.0.0.beta.8, which are not valid semver versions.
Use only the major.minor.patch part of the versions as all 1.0.0 betas work correctly with XCode 7.3

Revert special code for XCode 7.2 that adds -destination flag when building for iOS Simulator. Revert to original code, as it's working fine with all other XCode versions.

@rosen-vladimirov rosen-vladimirov self-assigned this Apr 19, 2016
@rosen-vladimirov rosen-vladimirov added this to the 2.0 milestone Apr 19, 2016
@@ -677,6 +677,13 @@ export class IOSProjectService extends projectServiceBaseLib.PlatformProjectServ
let cocoapodsVer = this.$sysInfo.getSysInfo(this.$staticConfig.pathToPackageJson).wait().cocoapodVer,
xcodeVersion = this.$xcodeSelectService.getXcodeVersion().wait();

if(cocoapodsVer && !semver.valid(cocoapodsVer)) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This could be shortened to !semver.valid(cocoapodsVer) only

@Mitko-Kerezov
Copy link
Contributor

👍 after fixing minor comment

Cocoapods have versions like 1.0.0.beta.8, which are not valid semver versions.
Use only the major.minor.patch part of the versions as all 1.0.0 betas work correctly with XCode 7.3
Revert special code for XCode 7.2 that adds `-destination` flag when building for iOS Simulator. Revert to original code, as it's working fine with all other XCode versions.
@rosen-vladimirov rosen-vladimirov force-pushed the vladimirov/fix-cocoapods branch from 964d90b to 1c2d617 Compare April 19, 2016 13:02
@rosen-vladimirov rosen-vladimirov changed the title Parse cocoapods beta versions correctly Fix build for iOS Apr 19, 2016
@rosen-vladimirov
Copy link
Contributor Author

run ci

@rosen-vladimirov rosen-vladimirov merged commit a37f3e3 into release Apr 19, 2016
@rosen-vladimirov rosen-vladimirov deleted the vladimirov/fix-cocoapods branch April 19, 2016 14:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants