Xcode problems??

  • I have a project in Xcode, it compiles and runs fine within debug mode in
    Xcode, but when I try to export it as an application from Archiver, the
    application crashed when launching. I am using the latest Xcode 4.6.2 and
    the snow leopard OS . Any idea how to get over this?
  • To see the exact error message, you can run it in shell,  for example your app names Test.app

    $ Test.app/Contents/MacOS/Test

    I guess and I guess the install name are incorrect.

    -Jonny

    On Jun 7, 2013, at 3:00 PM, Xiaoxun Sun <xiaoxun.sun...> wrote:

    > I have a project in Xcode, it compiles and runs fine within debug mode in Xcode, but when I try to export it as an application from Archiver, the application crashed when launching. I am using the latest Xcode 4.6.2 and the snow leopard OS . Any idea how to get over this?
    >
    > _______________________________________________
    > Do not post admin requests to the list. They will be ignored.
    > Xcode-users mailing list      (<Xcode-users...>)
    > Help/Unsubscribe/Update your Subscription:
    > https://lists.apple.com/mailman/options/xcode-users/<yingshen.yu...>
    >
    > This email sent to <yingshen.yu...>
  • How can you install Xcode 4.6.2 on Snow Leopard?  Dd you do anything special to install it?

    Also, you do not say if the project is an iOS project, a Mac app, a linked library.  You ned to tell us what this project is.

    On Jun 7, 2013, at 3:00 AM, Xiaoxun Sun wrote:

    > I have a project in Xcode, it compiles and runs fine within debug mode in Xcode, but when I try to export it as an application from Archiver, the application crashed when launching. I am using the latest Xcode 4.6.2 and the snow leopard OS . Any idea how to get over this?
    >
    > _______________________________________________
    > Do not post admin requests to the list. They will be ignored.
    > Xcode-users mailing list      (<Xcode-users...>)
    > Help/Unsubscribe/Update your Subscription:
    > https://lists.apple.com/mailman/options/xcode-users/<zav...>
    >
    > This email sent to <zav...>
  • Hi, sorry, I am new to Xcode and to mac as well. It is a mac app. The OS
    version is 10.8.3. When I click "run" in xcode, the compiled application
    works ok, but even when I right click the app in project navigator and
    choose "Show in Finder" and locate the compiled application, the
    application will crash when running. No idea what happened

    On Fri, Jun 7, 2013 at 8:15 PM, Alex Zavatone <zav...> wrote:

    > How can you install Xcode 4.6.2 on Snow Leopard?  Dd you do anything
    > special to install it?
    >
    > Also, you do not say if the project is an iOS project, a Mac app, a linked
    > library.  You ned to tell us what this project is.
    >
    > On Jun 7, 2013, at 3:00 AM, Xiaoxun Sun wrote:
    >
    > I have a project in Xcode, it compiles and runs fine within debug mode in
    > Xcode, but when I try to export it as an application from Archiver, the
    > application crashed when launching. I am using the latest Xcode 4.6.2 and
    > the snow leopard OS . Any idea how to get over this?
    > _______________________________________________
    >
    > Do not post admin requests to the list. They will be ignored.
    > Xcode-users mailing list      (<Xcode-users...>)
    > Help/Unsubscribe/Update your Subscription:
    > https://lists.apple.com/mailman/options/xcode-users/<zav...>
    >
    > This email sent to <zav...>
    >
    >
    >
  • Hello,

    Mac OS X 10.8.x is called Mountain Lion.

    Have you looked in the Console for error message after the crash? (Applications-->Tools-->Console)

    Regards,
    Lennart

    7 jun 2013 kl. 13.08 skrev Xiaoxun Sun:

    Hi, sorry, I am new to Xcode and to mac as well. It is a mac app. The OS version is 10.8.3. When I click "run" in xcode, the compiled application works ok, but even when I right click the app in project navigator and choose "Show in Finder" and locate the compiled application, the application will crash when running. No idea what happened

    On Fri, Jun 7, 2013 at 8:15 PM, Alex Zavatone <zav...><mailto:<zav...>> wrote:
    How can you install Xcode 4.6.2 on Snow Leopard?  Dd you do anything special to install it?

    Also, you do not say if the project is an iOS project, a Mac app, a linked library.  You ned to tell us what this project is.

    On Jun 7, 2013, at 3:00 AM, Xiaoxun Sun wrote:

    I have a project in Xcode, it compiles and runs fine within debug mode in Xcode, but when I try to export it as an application from Archiver, the application crashed when launching. I am using the latest Xcode 4.6.2 and the snow leopard OS . Any idea how to get over this?

    _______________________________________________

    Do not post admin requests to the list. They will be ignored.
    Xcode-users mailing list      (<Xcode-users...><mailto:<Xcode-users...>)
    Help/Unsubscribe/Update your Subscription:
    https://lists.apple.com/mailman/options/xcode-users/<zav...>

    This email sent to <zav...><mailto:<zav...>

    _______________________________________________
    Do not post admin requests to the list. They will be ignored.
    Xcode-users mailing list      (<Xcode-users...><mailto:<Xcode-users...>)
    Help/Unsubscribe/Update your Subscription:
    https://lists.apple.com/mailman/options/xcode-users/<lthelander...>

    This email sent to <lthelander...>

    Lennart Thelander
    System Developer
    Atex AB
    Berga Allé 1
    S-254 52 Helsingborg
    Sweden
    T: +46-42 25 39 05
    M: +46-701 69 39 05
    Skype: lennart_t_atex
    E: <Lennart.Thelander...> <mailto:<Lennart.Thelander...>

    [cid:<1CB96C80-079B-4F57-87F9-263D991D0D8B...>]
  • On Jun 7, 2013, at 7:08 AM, Xiaoxun Sun wrote:

    > Hi, sorry, I am new to Xcode and to mac as well. It is a mac app. The OS version is 10.8.3. When I click "run" in xcode, the compiled application works ok, but even when I right click the app in project navigator and choose "Show in Finder" and locate the compiled application, the application will crash when running. No idea what happened
    >

    Well, you have to realize, you're not giving us much to go on.

    You just said the equivalent of "my car won't start".
  • On Jun 7, 2013, at 4:08 AM, Xiaoxun Sun <xiaoxun.sun...> wrote:

    > Hi, sorry, I am new to Xcode and to mac as well. It is a mac app. The OS version is 10.8.3. When I click "run" in xcode, the compiled application works ok, but even when I right click the app in project navigator and choose "Show in Finder" and locate the compiled application, the application will crash when running. No idea what happened

    I just noticed this happening to my code the other day too.  It isn't just you.  I don't know if this is an intentional/known change by Apple.

    I archive my app, then export it to my desktop to run it that way.

    Todd

    PS. This doesn't happen with command-line tools.
  • On Jun 7, 2013, at 4:08 AM, Xiaoxun Sun <xiaoxun.sun...> wrote:

    > Hi, sorry, I am new to Xcode and to mac as well. It is a mac app. The OS version is 10.8.3. When I click "run" in xcode, the compiled application works ok, but even when I right click the app in project navigator and choose "Show in Finder" and locate the compiled application, the application will crash when running. No idea what happened

    In general it’s not useful to say “it crashed” without giving a backtrace showing what was going on at the point of the crash. When your app crashes the OS should put up a crash report alert, with an option to let you see the stack dump. That will show you where in the code it crashed.

    One possibility is that you have a bug in your code that is only exposed when compiler optimizations are on (i.e. in a Release build.) You can edit the build configuration to have Xcode run the app in Release mode; press Cmd-Opt-R and in the sheet that opens you can alter the build settings to use the Release instead of Debug configuration.

    —Jens
  • On Jun 7, 2013, at 4:28 AM, Alex Zavatone <zav...> wrote:

    > On Jun 7, 2013, at 7:08 AM, Xiaoxun Sun wrote:
    >
    >> when I right click the app in project navigator and choose "Show in Finder" and locate the compiled application, the application will crash when running. No idea what happened
    >>
    >
    > Well, you have to realize, you're not giving us much to go on.

    Xiaoxun statement is exactly what I've done. Basically find the built app in the Finder (e.g., in the Debug folder) and double click it to run. It doesn't run. A crash window pops up.

    It runs when launched from within Xcode.
    It runs when I archive-export the code and then double click the app.
    It does *not* run when, from the Finder, I double click the app in the Debug or Release folders.

    I used to run code this way, but at some point (I don't know when), it stopped working.

    (I'm away from my workstation right now, so I can't give you details from the crash reporter right now)

    Todd
  • On Jun 7, 2013, at 9:57 AM, Todd Heberlein <todd_heberlein...> wrote:

    > It runs when launched from within Xcode.
    > It runs when I archive-export the code and then double click the app.
    > It does *not* run when, from the Finder, I double click the app in the Debug or Release folders.
    >
    > I used to run code this way, but at some point (I don't know when), it stopped working.
    >
    > (I'm away from my workstation right now, so I can't give you details from the crash reporter right now)

    Stack dumps or it didn’t happen ;-)

    (Seriously, I haven’t encountered this problem. Could be a subtle bug in your code.)

    —Jens
  • On Jun 7, 2013, at 11:11 AM, Jens Alfke <jens...> wrote:

    > Stack dumps or it didn’t happen ;-)

    LOL!

    > (Seriously, I haven’t encountered this problem. Could be a subtle bug in your code.)

    In my particular case, my code that links to my C++ library crashes when launched from the Finder, and that does seem to be the problem.

    > Dyld Error Message:
    > Library not loaded: @executable_path/../Frameworks/NetSQExtensions.framework/Versions/A/NetSQExtensions
    > Referenced from: /Users/USER/Library/Developer/Xcode/DerivedData/LogBrowserWorkspace-esxglmihsydcbpcxzixlbkipfess/Build/Products/Debug/LogBrowser.app/Contents/MacOS/LogBrowser
    > Reason: image not found

    The Frameworks folder is *not* in the app bundle in the Debug folder, but when I archive-export the app, the folder is in the Apps bundle.  (I specify the frameworks to be copied in the "Build Phase")

    Todd

    ** Pictures **

    Process:        LogBrowser [583]
    Path:            /Users/USER/Library/Developer/Xcode/DerivedData/LogBrowserWorkspace-esxglmihsydcbpcxzixlbkipfess/Build/Products/Debug/LogBrowser.app/Contents/MacOS/LogBrowser
    Identifier:      com.NetSQ.beta.LogBrowser
    Version:        0.8 (27)
    Code Type:      X86-64 (Native)
    Parent Process:  launchd [199]
    User ID:        501

    Date/Time:      2013-06-07 11:13:34.130 -0700
    OS Version:      Mac OS X 10.8.3 (12D78)
    Report Version:  10

    Interval Since Last Report:          176011 sec
    Crashes Since Last Report:          1
    Per-App Interval Since Last Report:  14944 sec
    Per-App Crashes Since Last Report:  1
    Anonymous UUID:                      F9C7888A-7CD6-86BA-0E8B-CC60607FC211

    Crashed Thread:  0

    Exception Type:  EXC_BREAKPOINT (SIGTRAP)
    Exception Codes: 0x0000000000000002, 0x0000000000000000

    Application Specific Information:
    dyld: launch, loading dependent libraries

    Dyld Error Message:
      Library not loaded: @executable_path/../Frameworks/NetSQExtensions.framework/Versions/A/NetSQExtensions
      Referenced from: /Users/USER/Library/Developer/Xcode/DerivedData/LogBrowserWorkspace-esxglmihsydcbpcxzixlbkipfess/Build/Products/Debug/LogBrowser.app/Contents/MacOS/LogBrowser
      Reason: image not found

    Binary Images:
          0x109b38000 -        0x109b53ff7 +com.NetSQ.beta.LogBrowser (0.8 - 27) <B456AEA4-7734-3AFC-9F35-65077181A842> /Users/USER/Library/Developer/Xcode/DerivedData/LogBrowserWorkspace-esxglmihsydcbpcxzixlbkipfess/Build/Products/Debug/LogBrowser.app/Contents/MacOS/LogBrowser
        0x7fff69738000 -    0x7fff6976c93f  dyld (210.2.3) <A40597AA-5529-3337-8C09-D8A014EB1578> /usr/lib/dyld

    Model: MacPro5,1, BootROM MP51.007F.B03, 8 processors, Quad-Core Intel Xeon, 2.4 GHz, 24 GB, SMC 1.39f11
    Graphics: ATI Radeon HD 5770, ATI Radeon HD 5770, PCIe, 1024 MB
    Memory Module: DIMM 1, 4 GB, DDR3 ECC, 1066 MHz, 0x802C, 0x31384A53463531323732415A2D3147344431
    Memory Module: DIMM 2, 4 GB, DDR3 ECC, 1066 MHz, 0x802C, 0x31384A53463531323732415A2D3147344431
    Memory Module: DIMM 3, 4 GB, DDR3 ECC, 1066 MHz, 0x802C, 0x31384A53463531323732415A2D3147344431
    Memory Module: DIMM 5, 4 GB, DDR3 ECC, 1066 MHz, 0x802C, 0x31384A53463531323732415A2D3147344431
    Memory Module: DIMM 6, 4 GB, DDR3 ECC, 1066 MHz, 0x802C, 0x31384A53463531323732415A2D3147344431
    Memory Module: DIMM 7, 4 GB, DDR3 ECC, 1066 MHz, 0x802C, 0x31384A53463531323732415A2D3147344431
    AirPort: spairport_wireless_card_type_airport_extreme (0x14E4, 0x8E), Broadcom BCM43xx 1.0 (5.106.98.100.16)
    Bluetooth: Version 4.1.3f3 11349, 2 service, 18 devices, 1 incoming serial ports
    Network Service: Ethernet 1, Ethernet, en0
    PCI Card: ATI Radeon HD 5770, sppci_displaycontroller, Slot-1
    Serial ATA Device: HL-DT-ST DVD-RW GH61N
    Serial ATA Device: WDC WD1001FALS-41Y6A1, 1 TB
    USB Device: EPSON Scanner, 0x04b8  (Seiko Epson Corp.), 0x011e, 0xfa200000 / 2
    USB Device: hub_device, apple_vendor_id, 0x9126, 0xfd300000 / 2
    USB Device: Keyboard Hub, apple_vendor_id, 0x1006, 0xfd310000 / 6
    USB Device: Apple Keyboard, apple_vendor_id, 0x0220, 0xfd312000 / 7
    USB Device: Display iSight, apple_vendor_id, 0x8508, 0xfd350000 / 5
    USB Device: Apple LED Cinema Display, apple_vendor_id, 0x9226, 0xfd360000 / 4
    USB Device: Display Audio, apple_vendor_id, 0x1105, 0xfd340000 / 3
    USB Device: BRCM2046 Hub, 0x0a5c  (Broadcom Corp.), 0x4500, 0x5a100000 / 2
    USB Device: Bluetooth USB Host Controller, apple_vendor_id, 0x8215, 0x5a110000 / 3
    FireWire Device: built-in_hub, 800mbit_speed
  • On Jun 7, 2013, at 12:57 PM, Todd Heberlein wrote:

    >
    > On Jun 7, 2013, at 4:28 AM, Alex Zavatone <zav...> wrote:
    >
    >> On Jun 7, 2013, at 7:08 AM, Xiaoxun Sun wrote:
    >>
    >>> when I right click the app in project navigator and choose "Show in Finder" and locate the compiled application, the application will crash when running. No idea what happened
    >>>
    >>
    >> Well, you have to realize, you're not giving us much to go on.
    >
    > Xiaoxun statement is exactly what I've done. Basically find the built app in the Finder (e.g., in the Debug folder) and double click it to run. It doesn't run. A crash window pops up.
    >

    But the point is that "telling us that doesn't tell us anything that might allow us to help you".

    Son: I feel sick today mom.
    Mother: what's wrong?
    Son: I feel sick.

    Much like this case with the son, we know there is a problem, but you've given us nothing to go on to help.

    Now, you may not know what we need to know, and that's fine, but the next step is to find out what information might help us so that we wisely spend our time in helping you solve your problem.

    Son: I have a temperature of 103.5°, my tonsils are enlarged, my throat is raw and it hurts to swallow.

    That type of information would help the mother come to a conclusion of a path of action rather quickly.

    In your case and in Xiaoxun's case, what might your approach be so that we can get information to help us diagnose your issue(s)?

    The first step is to open the Console application and look if there is a crash log for your app.  You would look there since you are not running the application through Xcode, but launching it from the Finder.

    Another option to help get more information is to make sure that you have enabled the feature that displays more information on a crash.  You can then at that stack crawl of a crash and see what appears to have crashed and that might give you and us more information.  I'm not sure where this can be set though.

    That's all I've got for the information provided.
  • On Jun 7, 2013, at 11:22 AM, Todd Heberlein <todd_heberlein...> wrote:

    > The Frameworks folder is *not* in the app bundle in the Debug folder, but when I archive-export the app, the folder is in the Apps bundle.  (I specify the frameworks to be copied in the "Build Phase")

    That’s your problem, then. I don’t have any idea why the folder wouldn’t appear in the debug build, but you should start by taking a close look at the build settings, and the Xcode log output when it builds the debug config.

    —Jens
  • I suspect you have "Copy only when installing" on in the Copy Files build phase that puts the framework in your app.

    When you Archive in Xcode, it doesn't just do a build, it does an install as well, so that everything built is placed in the proper location (relative to the archive directory) as specified in its INSTALL_PATH build setting.

    For example, an app had an Install Path of LOCAL_APPS_DIR (/Applications) and this causes it to be put in a hierarchy like that inside the archive.

      -- Chris

    Sent from my iPhone

    On Jun 7, 2013, at 11:22 AM, Todd Heberlein <todd_heberlein...> wrote:

    > The Frameworks folder is *not* in the app bundle in the Debug folder, but when I archive-export the app, the folder is in the Apps bundle.  (I specify the frameworks to be copied in the "Build Phase")
previous month june 2013 next month
MTWTFSS
          1 2
3 4 5 6 7 8 9
10 11 12 13 14 15 16
17 18 19 20 21 22 23
24 25 26 27 28 29 30
Go to today