Skip to content
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

Swift 3 #31

Closed
wants to merge 7 commits into from
Closed

Swift 3 #31

wants to merge 7 commits into from

Conversation

aCorrado
Copy link

  • Swift 3 Conversion
  • Version Bump (probably we should go a major version here)

Antonio Corrado added 2 commits September 15, 2016 15:31
- Version Bump (probably we should go a major version here)
@SerenadeX
Copy link
Contributor

This is great but with the Travis file you need to add pod lib lint after the testing is finished. There is another PR #30 where we haven't figured out how to get Travis to run it properly after testing. I won't merge it unless you can get that working.

@@ -1,5 +1,5 @@
language: objective-c
osx_image: xcode7.3
osx_image: xcode8.0
Copy link
Contributor

Choose a reason for hiding this comment

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

I'm not sure on this but I think you need the value to be xcode8 and not xcode8.0

Copy link
Author

Choose a reason for hiding this comment

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

You are perfectly right.
I'll add it and check why travis cannot find the simulator

Copy link
Contributor

Choose a reason for hiding this comment

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

See #30 I think it works the best that way. We made changes to .travis.yml that got the tests to run.

Copy link
Author

Choose a reason for hiding this comment

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

I've also found that we cals also use instead of
-sdk iphonesimulator9.3
this
-destination 'platform=iOS Simulator,name=iPhone 6s' CODE_SIGN_IDENTITY="" CODE_SIGNING_REQUIRED=NO ONLY_ACTIVE_ARCH=NO

Copy link
Contributor

Choose a reason for hiding this comment

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

Sure. I think we kept the 9.3 SDK to maintain the check in iOS 9 so we know it's still compatible with iOS 9

@SerenadeX
Copy link
Contributor

This also relies on RichTextVC which also needs the conversion. Looks like the failing is because the Example project still depends on that

@SerenadeX
Copy link
Contributor

Weird, it passed validation but returned a 1. Can we figure out why?

script:
- set -o pipefail && xcodebuild test -workspace Example/LTMarkdownParser.xcworkspace -scheme LTMarkdownParser_Example -sdk iphonesimulator9.3 | xcpretty
- pod lib lint
- set -o pipefail && xcodebuild test -workspace Example/LTMarkdownParser.xcworkspace -scheme LTMarkdownParser_Example -sdk iphonesimulator9.3 -destination 'OS=9.3,platform=iOS Simulator,name=iPhone 5' | xcpretty
Copy link
Collaborator

Choose a reason for hiding this comment

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

I think this shouldn't specify the iOS 9 simulator.

Copy link
Collaborator

Choose a reason for hiding this comment

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

From the log: "xcodebuild: error: SDK "iphonesimulator9.3" cannot be located."

@nickmshelley
Copy link
Collaborator

@SerenadeX I think that error will go away with another pod update after the Swift conversion. That's been my experience on the other projects at least.

@nickmshelley
Copy link
Collaborator

Implemented in #33.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants