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

Carthage Is Only Building The Mac Scheme #173

Closed
CodaFi opened this issue Jan 30, 2015 · 14 comments
Closed

Carthage Is Only Building The Mac Scheme #173

CodaFi opened this issue Jan 30, 2015 · 14 comments
Labels

Comments

@CodaFi
Copy link
Member

CodaFi commented Jan 30, 2015

Running carthage build --no-skip-current causes only the OS X project to be found and that scheme to be built by Carthage. In some rare cases (after first checkouts for libraries that depend on Swiftx and Swiftz), Carthage will report that it cannot find the Swiftz-iOS scheme, but future attempts to run carthage build will not report said error further.

I'm not entirely sure how to fix this one. xcodebuild can see all the right schemes in our project directory but nothing for iOS is being built.

//cc @jspahrsummers

@CodaFi CodaFi added the bug label Jan 30, 2015
@jspahrsummers
Copy link
Contributor

Carthage reads schemes from one project file. You'll have to put both platforms' targets in the same project for it to work.

@CodaFi
Copy link
Member Author

CodaFi commented Feb 3, 2015

Any way to make it find the workspace instead of the projects?

@jspahrsummers
Copy link
Contributor

Nope.

@CodaFi
Copy link
Member Author

CodaFi commented Feb 3, 2015

Welp, I'll look into making that happen then.

For now, I know you're horrendously overbooked on the message front. Thanks a ton! ✨

@ryanbooker
Copy link
Contributor

Just wondering if there is any plan to have full Carthage support? Or even is there anything a contributor could do to help achieve that?

@CodaFi
Copy link
Member Author

CodaFi commented May 19, 2015

Until Carthage supports building workspaces or multi-project repos there's nothing I can see that can be done about this. The only thing we can do is offer to keep carthage build --no-skip-current working for each target (which is becoming a PITA without Travis).

@jspahrsummers
Copy link
Contributor

@CodaFi You can combine the targets into one project file. That's the typical thing to do anyways, because it helps with dependency resolution in other multi-platform projects.

@CodaFi
Copy link
Member Author

CodaFi commented May 19, 2015

The frameworks have the same product name, which created some interesting errors when I last tried this. Then again, that was months ago. Let's see what happens.

@CodaFi
Copy link
Member Author

CodaFi commented May 19, 2015

@jspahrsummers Hmph, this is going swimmingly. I can't recall a precise reason I starting splitting the project files, but whatever it was is gone now.

Looking forward to closing this.

@CodaFi
Copy link
Member Author

CodaFi commented May 19, 2015

Yay, everything works again!

Fixed by the merge of #197.

@CodaFi CodaFi closed this as completed May 19, 2015
@jspahrsummers
Copy link
Contributor

@ryanbooker
Copy link
Contributor

Fantastic. Thanks for that. Much appreciated.

Is it intended that the iOS projects in Swiftx/z/Check have an 8.4 deployment target? This restricts the projects to Xcode 6.4 beta at the moment (i.e. builds fail with Xcode 6.3)… however the projects do build in Xcode 6.3 for 8.3 if you change the deployment target back manually.

@CodaFi
Copy link
Member Author

CodaFi commented May 20, 2015

That was put there by Xcode 6.4. I haven't update the podspec because of it (It's release is imminent anyways). If you'd like to submit a pull request changing it I'd merge it,

@pthariensflame
Copy link
Member

@CodaFi You know, you can just have Xcode 6.4 download the "iOS 8.3 emulator" and it'll let you target 8.3 from then on.

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

No branches or pull requests

4 participants