Photo_13_small Bill Dudney 372 posts

Hi All,

Near the end of episode one when I get the error about CGRectZero and I show you how to add the Core Graphics framework I missed telling you to navigate to the iPhone SDK to choose the framework.

After hitting the ‘Add -> Existing Framework…’ menu item an open panel will popup. Navigate to this directory;

/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS2.0.sdk/System/Library/Frameworks

Then choose CoreGraphics.framework

Happy Coding!

 
Generic-user-small Doug MIller 7 posts

Hi Bill,

After following this path I get the following error

"ld: cannot link directly with /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/CoreGraphics.framework/CoreGraphics. Link against the umbrella framework 'ApplicationServices.framework' instead.

thoughts?

 
Photo_13_small Bill Dudney 372 posts

Hi Doug,

Sorry its not working.

Looks like your project is linking against the OSX frameworks instead of the iPhone frameworks.

Make sure your project is set to use the iPhone SDK.

 
Generic-user-small Doug MIller 7 posts

Hey Bill,

I’m still having the same problem. The path to the frameworks says iPhone OS in it.

To verify i downloaded some of the code from pragmatic and the recipe app compiled fine.

I then went to my code and deleted the CoreGraphics.framework path and then dragged the path from the recipe app but I’m still getting the same error.

I’d love to know what it is otherwise my next step is to begin with a clean file and start again.

Thanks, Doug.

p.s. Screencastwise, I would love to find out about creating interfaces that use bitmaps created outside the SDK. Not sure if you have covered it and I haven’t gotten to it yet.

 
Photo_13_small Bill Dudney 372 posts

Hi Doug,

Did you get it working, I’m no expert on the intricacies of Xcode but it sounds to me like it is pointing to the wrong SDK.

 
Generic-user-small Doug MIller 7 posts

I did get it working. Not sure how, but I got there.

Working on this late at night after working all day makes for plenty of unexplained errors.

More questions as I go. cheers

 
Generic-user-small Mark Denchy 1 post

Bill,
Being a noob, I pulled my hair out trying with _CG reference errors. Adding the CoreGraphics library from the IPhone SDK fixed the issue. Thanks!!!!!

 
Photo_13_small Bill Dudney 372 posts

Hi Mark,

Glad it helped!

Good luck and let us know when you get something cool in the app store!

8 posts, 3 voices