iPhone programming beginners question

Discussion in 'iOS Programming' started by Monaj, May 24, 2009.

  1. Monaj macrumors regular

    Joined:
    May 24, 2009
    #1
    I tried to make a simple program of displaying label "Hello" for iPhone simulator! It works fine when executed through Xcode but when I try to run it directly through- Release-iPhoneSimulator folder the application crashes!:eek:
    The error which is shown is:
    Library not loaded: /System/Library/Frameworks/UIKit.framework/UIKit
    Referenced from: /Users/keyss/Desktop/Release-iphonesimulator 2/Hello.app/Hello
    Reason: image not found

    Although I have added a UIKit framework to it!:confused:
     
  2. Compile 'em all macrumors 601

    Compile 'em all

    Joined:
    Apr 6, 2005
    #2
    what do you mean run it directly? you cant just double click on the .app and it runs.
     
  3. Monaj thread starter macrumors regular

    Joined:
    May 24, 2009
    #3
    I have done a little bit of programming for Mac.. in it if I want to send the application to someone, I just send the release folder to him and he launches and test the application via double clicking .app. I thought that same will work in this case but it doesn't.:( If I want to send my application to test it without sending code then how can I do it:confused:
     
  4. Compile 'em all macrumors 601

    Compile 'em all

    Joined:
    Apr 6, 2005
    #4
    Assuming you are a registered iPhone dev, you can setup an adhoc provisioning profile and send it over along with the binary to your beta tester so he/she can run it on the phone.
     
  5. Stratoukos macrumors member

    Joined:
    Jul 15, 2008
    #5
    If you double click the .app in finder OSX thinks it's an OSX application and tries to run it as one. Since it's an iPhone application, an error occurs. If you want someone else to run the application he should have Xcode+iPhone SDK installed and you should sent him the entire folder of you project so he can compile and run it. Or, if you are a registered developer, you can do as Compile 'em all said.
     
  6. Monaj thread starter macrumors regular

    Joined:
    May 24, 2009
  7. firewood macrumors 604

    Joined:
    Jul 29, 2003
    Location:
    Silicon Valley
    #7
    If someone has the SDK Simulator installed, you actually don't need to send them a complete project folder to build. You can just send them a complete iPhone Simulator Application Support directory, which will contain your app bundle, and all the other necessary configuration settings after you run it on the Simulator on your Mac. Look in your Library directory.
     
  8. Monaj thread starter macrumors regular

    Joined:
    May 24, 2009
    #8
    I tried to do it. but could not work.
    i think i miss something.
    do you suggest me, how can do it.

    please give me some useful to resolve this problem
    thanks
     

Share This Page