Advertise here




Advertise here

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

XCode Building error

jchen01jchen01 Posts: 21Registered Users
edited November 2009 in iOS SDK Development
Hi folks,

I am writing a static library for iphone. When I select iPhone Device 2.2.1 (BASE SDK) in the Active SDK. It popped following error.

gcc-4.0: Invalid arch name : armv7
Command /Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/gcc-4.0 failed with exit code 1

This error is gone if I choose iPhone Simulator 2.2.1 in the Active SDK.

Another question is very naive.

I am writing a static library and I don't want people to see the source code. However, when I try it with a test app. I found I could actually debug into the source. How do I resolve this problem?

Thanks a lot!
Post edited by jchen01 on
· ·

Replies

  • InnovationInnovation Posts: 38Registered Users
    edited November 2009
    For the first question, is your selected device running iPhone OS 2.2.1?

    For question number 2 you can only debug into source because Xcode has access to your sourcecode. If you compile and distribute your static library other users will not have access to your source.
    My iPhone apps<br />
    <a href="http://itunes.apple.com/ca/app/bookworm-google-book-search/id378040160?mt=8" target="_blank"><b>Bookworm</b></a> - Read thousands of books right on your device<br />
    <a href="http://itunes.apple.com/ca/app/grandmaster-check
    · ·
  • jchen01jchen01 Posts: 21Registered Users
    edited November 2009
    The second problem was caused by myself. I edited my Release build setting but not debugging. The debug was still looking into the source code path. The release however was searching through a folder created after the build.

    For the first question.

    I didn't connect my iphone to the computer nor do I have a license for it yet. Is that the cause? The strange thing is, I am simply building a static library. Do I have to have my iphone connected just to build for the Device?
    Innovation wrote: »
    For the first question, is your selected device running iPhone OS 2.2.1?

    For question number 2 you can only debug into source because Xcode has access to your sourcecode. If you compile and distribute your static library other users will not have access to your source.
    · ·
  • lukecalukeca Posts: 916Registered Users @ @ @
    edited November 2009
    Try choosing clean all targets from the build menu before you build for the device.
    <a href="http://itunes.apple.com/WebObjects/MZStore.woa/wa/viewSoftware?id=322221531&mt=8" target="_blank">Thirty One: An exciting card game</a> - <a href="http://www.thirtyoneapp.com" target="_blank">www.thirtyoneapp.com</a><br />
    <a href="http://it
    · ·
Sign In or Register to comment.