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

Enabling 'Allow app extension API Only' #8

Merged
merged 1 commit into from
Sep 21, 2015
Merged

Enabling 'Allow app extension API Only' #8

merged 1 commit into from
Sep 21, 2015

Conversation

JamieWhite
Copy link
Contributor

This is needed to silence warnings from app extensions linking to this library.

Turning on this prevents the project from building if it uses any none app extension API.

@MarkQSchultz
Copy link
Contributor

@Visorox: not sure if you saw, but looks like the build failed

@JamieWhite
Copy link
Contributor Author

Yeah. Im not quite sure what's gone wrong here. It builds locally and the unit tests are successful. The error is

[Info] Collecting info for testables... (7310 ms) run-test PSOperationsTests.xctest (iphonesimulator9.0, iPhone 4s, logic-test) 2015-09-16 10:26:54.425 xctool[600:3266] *** Assertion failure in -[OCUnitIOSLogicTestRunner testEnvironmentWithSpecifiedTestConfiguration], /tmp/xctool20150824-26666-g0ve6w/xctool-0.2.5/xctool/xctool/OCUnitTestRunner.m:333 2015-09-16 10:26:54.447 xctool[600:3266] *** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'XCTestConfiguration isn't available'

I'm wondering if Travis was hiccuping and it just needs to run it again. Do you know how to tell it to rebuild?

@JamieWhite
Copy link
Contributor Author

So Travis uses xctool and there appears to be issues with it and xcode 7 facebookarchive/xctool#528

@JamieWhite
Copy link
Contributor Author

I see it failed again. Im a bit stumped

@JamieWhite JamieWhite closed this Sep 21, 2015
@JamieWhite JamieWhite reopened this Sep 21, 2015
@JamieWhite
Copy link
Contributor Author

So it's failing with this command

The command "xctool -project PSOperations.xcodeproj -scheme PSOperations -sdk iphonesimulator build test" exited with 134.

but when I run that locally it works fine. I see the master branch is also failing so I think there's something screwed with Travis

@JamieWhite
Copy link
Contributor Author

Okay if this blog post from Travis is anything to go by they're still rolling with xctool 0.25 http://blog.travis-ci.com/2015-09-09-xcode7-gm/

Looking at the xctool releases 0.26 adds xcode 7 support. https://github.com/facebook/xctool/releases

I'm gonna badger travis-ci on twitter

@JamieWhite JamieWhite closed this Sep 21, 2015
@JamieWhite JamieWhite reopened this Sep 21, 2015
@JamieWhite
Copy link
Contributor Author

They updated to xctool 0.26 this morning so I restarted the build and it was successful. LGTM

MarkQSchultz added a commit that referenced this pull request Sep 21, 2015
Enabling 'Allow app extension API Only'
@MarkQSchultz MarkQSchultz merged commit 9baf7f5 into pluralsight:swift2 Sep 21, 2015
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

2 participants