Blake Watters
Two Toasters | CTO | ||
I have, I believe, followed the directions for a 'derived data' Build Location to a tee, and cannot get it to archive. This is Xcode 4, of course.
In the 'Build target RestKit', the Copy RestKit.h goes off without a hitch, but after that step, the following two steps appear to 'fail':
---------------
PhaseScriptExecution "Protect Copied Headers" .....
/bin/sh -c /Users/aiwilliams/Library/Developer/Xcode/DerivedData/DreamCake-gcimooiqbxprevhcpvycbmhzseex/ArchiveIntermediates/DreamCake/IntermediateBuildFilesPath/RestKit.build/Release-iphoneos/RestKit.build/Script-25956980126DF159004BAC4C.sh
Configuration include path does not exist, likely perform a Build & Archive operation...
---------------
---------------
PhaseScriptExecution "Copy Headers to Legacy Location" ......
/bin/sh -c /Users/aiwilliams/Library/Developer/Xcode/DerivedData/DreamCake-gcimooiqbxprevhcpvycbmhzseex/ArchiveIntermediates/DreamCake/IntermediateBuildFilesPath/RestKit.build/Release-iphoneos/RestKit.build/Script-250F87BE13337518002F4590.sh
Configuration include path does not exist, likely perform a Build & Archive operation...
---------------
It then goes into the 'Build target DreamCake', does it's thing fine until it attempts to compile one of my project files which does '#include <RestKit/RestKit.h>', at which point:
---------------
CompileC /Users/aiwilliams/Library/Developer/Xcode/DerivedData/DreamCake-gcimooiqbxprevhcpvycbmhzseex/ArchiveIntermediates/DreamCake/IntermediateBuildFilesPath/DreamCake.build/Release-iphoneos/DreamCake.build/Objects-normal/armv6/DBStopLocation.o Code/Models/DBStopLocation.m normal armv6 objective-c com.apple.compilers.gcc.4_2
.....
In file included from /Users/aiwilliams/Workspaces/dreamcakes/iphone/Code/Models/DBStopLocation.m:1:
/Users/aiwilliams/Workspaces/dreamcakes/iphone/Code/Models/DBStopLocation.h:2:28: error: RestKit/RestKit.h: No such file or directory
.....
---------------
Any thoughts would be greatly appreciated.
Adam Williams
> Thanks for checking this out. I tried applying the changes to an existing client project today and wound up in serious build hell. All new projects and example projects on my box seem to be working fine, but obviously something isn't there yet.
Whew. I was starting to think that I'm not cut out for this kind of work :)
> If you get a moment, can you try doing a build and archive on the RKTwitter project on 0.9?
Build and Archive reports 'Archive Succeeded'.
At this point, I don't know how to turn that into an ipa for uploading to testflightapp.com. When I press 'Validate...' or 'Submit...', it tells me that the archive 'does not contain a single-bundle application' and that I should adjust the scheme to create one. When I press 'Share...', I'm given options to produce a couple of things, but I cannot choose 'Package', and the Identity selector tells me 'This kind of archive cannot be signed'.
> I'll advise on this issue this weekend. Xcode 3 vs. Xcode 4 + archiving issues are causing a lot of heartburn around the Two Toasters office atm, so I'll continue fighting this one before pushing forward on the rest of the 0.9.1 list.
You're very gracious. I burned almost all of Friday tweaking things to no avail. Obviously, something is not right in my project's configuration... I just don't know how to determine what that is. I'm not in Ruby anymore :)
Adam Williams
The value in all of this is that you may track the changes of a dependency. In this case, when Two Toasters pushes new code into master, or 0.9, or whatever branch you are tracking in the submodule, you can simply cd into the submodule directory and do a "git pull", then commit the updated pointer that your own project reflects due to the updated submodule.
Hope that helps,
Adam Williams
On 3/20/11 1:23 PM, Andrew Newdel wrote:
> There's a thread and possible solution for this "single-bundle" issue
> on the Apple dev forums.
>
> https://devforums.apple.com/message/398031
>
> Look for the reply from "kak" that starts with "SUCCESS!".
>
> I haven't tried it with RestKit, but it worked for me with another
> library.
>
>
> On Mar 20, 1:01 pm, dave84<mail.steinber...@gmail.com> wrote:
>> Update to my post above: I can archive RKTwitter and my app with 0.9
>> branch of RestKit.
>> But I cannot export the ipa file. When I try to validate it in the
>> organizer I get:
>>
>> [project] does not contain a single�bundle application or contains
>> multiple products. Please select another archive, or adjust your
>> scheme to create a single�bundle application.
Ugh, this Xcode 4 switch has been nothing but pain. I think I am just going to add a new build target that will create a framework or set of fat binaries for the libs. We are seeing wildly different behavior from app to app across Two Toasters projects. I'll take another look at this mess tonight.
On 3/20/11 1:23 PM, Andrew Newdel wrote:
There's a thread and possible solution for this "single-bundle" issue
on the Apple dev forums.
https://devforums.apple.com/message/398031
Look for the reply from "kak" that starts with "SUCCESS!".
I haven't tried it with RestKit, but it worked for me with another
library.
On Mar 20, 1:01 pm, dave84<mail.steinber...@gmail.com> wrote:
Update to my post above: I can archive RKTwitter and my app with 0.9
branch of RestKit.
But I cannot export the ipa file. When I try to validate it in the
organizer I get:
[project] does not contain a single–bundle application or contains
multiple products. Please select another archive, or adjust your
scheme to create a single–bundle application.