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 build failure #25

Closed
Adlai-Holler opened this issue Apr 16, 2015 · 8 comments
Closed

Carthage build failure #25

Adlai-Holler opened this issue Apr 16, 2015 · 8 comments

Comments

@Adlai-Holler
Copy link

Create a cartfile like

github "antitypical/Result" ~> 0.1

Using carthage 0.6.4, run

carthage bootstrap --platform iOS

You'll get

*** Building scheme "Box-iOS" in Box.xcodeproj
*** Building scheme "Prelude-iOS" in Prelude.xcodeproj
*** Building scheme "Either-iOS" in Either.xcworkspace
*** Building scheme "Result-iOS" in Result.xcworkspace
** BUILD FAILED **


The following build commands failed:
    Check dependencies
(1 failure)

There are a couple issues in the log file. It seems to be building the Mac versions of the frameworks as well as the iOS versions, despite telling Carthage the platform. As for the build failing, the last message of the log is

=== BUILD TARGET Prelude-Mac OF PROJECT Prelude WITH CONFIGURATION Release ===

Check dependencies
CodeSign error: code signing is required for product type 'Framework' in SDK 'iOS 8.3'
@robrix
Copy link
Contributor

robrix commented Apr 16, 2015

Duplicate of #21. I think our best bet is going to be binary releases.

@robrix
Copy link
Contributor

robrix commented Apr 16, 2015

@jspahrsummers Is there any reason building with Xcode proper wouldn’t work for binary releases?

@jspahrsummers
Copy link
Member

@robrix That should work, although I'd be cautious about relying upon it. There are a variety of scenarios where binaries may not be downloaded (user choice, API issues, rate limiting, etc.). Carthage basically just considers them an optimization, and tries not to expect them to be present.

@robrix
Copy link
Contributor

robrix commented Apr 16, 2015

The alternative here is for Apple to fix my radar. They closed it as a dupe. I can’t imagine it’ll happen this year, and probably not ever.

@robrix
Copy link
Contributor

robrix commented Apr 16, 2015

I think I’m content with a binary release as a way to mitigate the effects of this xcodebuild bug. Gonna close this and upload a binary.

@robrix robrix closed this as completed Apr 16, 2015
@robrix
Copy link
Contributor

robrix commented Apr 16, 2015

Argh. It occurs to me I don’t know how to handle the iOS binaries. Do I lipo the sim & device images together…?

@jspahrsummers
Copy link
Member

@robrix If you can get carthage build --no-skip-current --platform iOS to work, that would be ideal—even if it's by deleting or disabling the Mac scheme temporarily somehow.

@robrix
Copy link
Contributor

robrix commented Apr 17, 2015

👍

jspahrsummers added a commit to jspahrsummers/Box that referenced this issue May 5, 2015
I think this is a real workaround for issues like antitypical/Result#21
and antitypical/Result#25.

I don’t think this will work around issues like robrix#21.
jspahrsummers added a commit that referenced this issue May 5, 2015
I think this is a real workaround for issues like #21 and #25.

See also robrix/Box#24.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants