-
Notifications
You must be signed in to change notification settings - Fork 31
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
Compilation error using carthage #21
Comments
I’m afraid I don’t have any ideas here. I can‘t reproduce the issue 😕 Are any of your other dependencies using Box? |
Interesting. I originally discovered it because my project was was using Carthage to embed Argo, which has its own For me, reproducing is literally as simple as the following:
Could I trouble you to share your Carthage build log from the above steps? That might help me figure out what is different on my machine. In case anyone is playing along at home, for reference, I'm using Xcode 6.3 (6D570) and Carthage (0.6.3). |
You bet:
|
Thanks Rob. Turns out that your Foo project doesn't build on my machine either, so it must be something screwy in my environment. I think the gist you created with the log must be a private one... as I get a 404 when I access it. Once I get that, hopefully that will give me a clue as to what is wrong with my setup. Thanks. |
There’s no such thing as private gists only public & secret (unlisted) ones, but I’ve gone ahead and made it public. |
Since this doesn’t repro for me I’m going to go ahead and close this issue out. |
@edwardaux I’ve just uploaded a binary for 1.2.1, so |
Thanks @robrix. FYI, I was doing some more googling and found some other reports of a similar problem in ReactiveCocoa. Their "fix" was to uninstall Xcode 6.3 and re-install it - which I tried, but no luck. I downloaded the source to Carthage and started poking around to see what arguments they use when they invoke
By contrast, building by specifying the target works ok:
The one thing that jumped to mind in the failing log is that even though the sdk is reporting as
Weirdly enough, I see the exact same conditions when I tried the same for Prelude. No action required on your part... just thought I'd update this issue in case others have a similar problem. Will report more when I get to the bottom of it. |
Interesting findings. What happens if you specify both target and scheme? This may be worth opening an issue against |
I'm seeing the same results as @edwardaux on my machine. Thanks for digging into what's causing this. |
Has the binary for 1.2.1 helped anything here? |
I forgot to mention, I'm seeing the same thing with https://github.com/LlamaKit/LlamaKit, I haven't used this lib specifically. I did just add it to my project to try though, and it installed successfully. It didn't build though, I'm guessing that's because you have the If I force master with |
@jakecraige That’s right, binary release == downloadable .framework for 1.2.1. So that much is working at least! |
As it turns out, @robrix, I don't believe that it is specifically related to Box (oh, and to answer your earlier question, scheme and target are mutually exclusive). When using When using Stepping back a little, I created a brand new iOS framework project (and also a static library project) and they both have exactly the same problem. A brand new app, however, does not exhibit the problem. Based on this, I think the problem can correctly framed as: Using Xcode 6.3, when compiling iOS static libraries or frameworks, incorrect The weird thing is that everything compiles OK in Xcode. At this stage, it is looking more and more like an |
@edwardaux Sounds related to Carthage/Carthage#347 or Carthage/Carthage#417. |
Ooh, yes. Carthage/Carthage#417 is on the money. If I pass in I'll do a bit more digging on the |
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.
Hi... just tried to add Box to a brand new project using Carthage (my cartfile contains
github "robrix/Box" ~> 1.2.0
) and get the following error when I runcarthage update
:If I manually open and build
Carthage/Checkouts/Box/Box.xcodeproj
in Xcode (6.3, if it matters) it compiles OK. The one difference that I can see between the two compilation commands are that carthage is usingRelease-iphoneos
, whereas Xcode usesDebug-iphonesimulator
.The full transcript of the carthage build is https://gist.github.com/edwardaux/8a2319844ba00582c0b7
Any thoughts? Thanks.
The text was updated successfully, but these errors were encountered: