Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice
  3. Join us on November 16th, 2023, between 1 pm and 9 pm CET for Ask the Experts Online on Discord and on Unity Discussions.
    Dismiss Notice

Unity to XCode 7: Error!

Discussion in 'Scripting' started by ExbowFTW, Sep 12, 2015.

  1. ExbowFTW

    ExbowFTW

    Joined:
    May 2, 2015
    Posts:
    281
    In XCode 7 Beta, whenever I try to run my game (I have the certificates, etc.), I get this error:
    Linker command failed with exit code 1 (use -v to see invocation).

    I have looked a little bit into it, but I still don't know how to troubleshoot this error. Does anyone know?

    Thanks!
     
  2. jgnmoose

    jgnmoose

    Joined:
    Apr 1, 2014
    Posts:
    44
    Please post your stack trace from the debug console. Very difficult to answer with what you have posted.
     
  3. ExbowFTW

    ExbowFTW

    Joined:
    May 2, 2015
    Posts:
    281
    How do I find out my Stack Trace in XCode?
     
  4. jgnmoose

    jgnmoose

    Joined:
    Apr 1, 2014
    Posts:
    44
    The console window in the lower left of Xcode. Or copy and paste out of the failed link message. Xcode is actually very good about telling you what is breaking things. If you aren't seeing any verbose output, click the play button in the debug area (bottom 3rd of Xcode).
     
  5. ExbowFTW

    ExbowFTW

    Joined:
    May 2, 2015
    Posts:
    281
    clang: error: linker command failed with exit code 1 (use -v to see invocation)

    "File Name" (I don't want to give away what the file names are called) does not contain bitcode. You must rebuild it with bitcode enabled (Xcode setting ENABLE_BITCODE), obtain an updated library from the vendor, or disable bitcode for this target. for architecture armv7
    clang: error: linker command failed with exit code 1 (use -v to see invocation)

    BTW: the "File name" is a Unity Ads file framework. Does it have something to do with Unity Ads?
     
  6. jgnmoose

    jgnmoose

    Joined:
    Apr 1, 2014
    Posts:
    44
    You can check it out in project->target->build settings-> search enable bitcode->set NO in DEBUG


    Yes and no on who is to blame, these are newer options in Xcode 7. It isn't production ready just yet.
     
  7. AcidArrow

    AcidArrow

    Joined:
    May 20, 2010
    Posts:
    11,019
    I believe the latest patch build fixes the bitcode thing.

    But Application.LoadLevel seems to be broken atm, so...
     
  8. ExbowFTW

    ExbowFTW

    Joined:
    May 2, 2015
    Posts:
    281
    Oh yikes. So if i update to the newest XCode, the BitCode error will be fixed?
     
  9. ExbowFTW

    ExbowFTW

    Joined:
    May 2, 2015
    Posts:
    281
    Whenever I do that, it gives me 13 more errors. Sorry, I forgot to say that earlier. I've tried doing the "enabled Bitcode" NO multiple times, and it never works :(
     
  10. AcidArrow

    AcidArrow

    Joined:
    May 20, 2010
    Posts:
    11,019
    I meant latest Unity patch build.