Search Unity

[xcode] clang: error: linker command failed with exit code 1 (use -v to see invocation)

Discussion in 'Unity Build Automation' started by tommyblock, Oct 28, 2014.

  1. tommyblock

    tommyblock

    Joined:
    Jul 28, 2014
    Posts:
    2
    Does anybody have any idea what the above is means. Im trying to complie to IOS

    Here is the full log:::
    1: [Unity] Initialize engine version: 4.5.5f1 (7684ad0c5a44)
    2: [Unity] WARNING: Shader Unsupported: 'Reflective/VertexLit' - Invalid texture combiner
    3: [Unity] WARNING: Shader Unsupported: 'Legacy Shaders/Lightmapped/VertexLit' - Invalid texture combiner
    4: [Unity] WARNING: Shader Unsupported: 'Hidden/Nature/Terrain/Bumped Specular AddPass' - Pass 'FORWARD' shader state not supported
    5: [Unity] WARNING: Shader Unsupported: 'Nature/Terrain/Bumped Specular' - Pass 'FORWARD' shader state not supported
    6: [Unity] UnityEngine.Debug:LogWarning(Object)
    7: [Unity] Finished exporting player successfully.
    8: + Building with Xcode 5.1.1
    9: [xcode] /BUILD_PATH/BVR_TEMP_DIR/d20141028-25562-19wul9b/Unity-iPhone/Images.xcassets:./AppIcon.appiconset: warning: App Icons built with asset catalogs are unavailable on iOS releases prior to 5.0.
    10: [xcode] /BUILD_PATH/BVR_TEMP_DIR/d20141028-25562-19wul9b/Unity-iPhone/Images.xcassets:./AppIcon.appiconset: warning: A 57x57@2x app icon is required for iPhone apps targeting releases of iOS prior to 7.0
    11: [xcode] /BUILD_PATH/BVR_TEMP_DIR/d20141028-25562-19wul9b/Unity-iPhone/Images.xcassets:./AppIcon.appiconset: warning: A 60x60@2x app icon is required for iPhone apps targeting iOS 7.0 and later
    12: [xcode] /BUILD_PATH/BVR_TEMP_DIR/d20141028-25562-19wul9b/Unity-iPhone/Images.xcassets:./AppIcon.appiconset: warning: A 72x72 app icon is required for iPad apps targeting releases of iOS prior to 7.0
    13: [xcode] /BUILD_PATH/BVR_TEMP_DIR/d20141028-25562-19wul9b/Unity-iPhone/Images.xcassets:./AppIcon.appiconset: warning: A 72x72@2x app icon is required for iPad apps targeting releases of iOS prior to 7.0
    14: [xcode] /BUILD_PATH/BVR_TEMP_DIR/d20141028-25562-19wul9b/Unity-iPhone/Images.xcassets:./AppIcon.appiconset: warning: A 76x76 app icon is required for iPad apps targeting iOS 7.0 and later
    15: [xcode] /BUILD_PATH/BVR_TEMP_DIR/d20141028-25562-19wul9b/Unity-iPhone/Images.xcassets:./AppIcon.appiconset: warning: A 76x76@2x app icon is required for iPad apps targeting iOS 7.0 and later
    16: [xcode] /BUILD_PATH/BVR_TEMP_DIR/d20141028-25562-19wul9b/Unity-iPhone/Images.xcassets:./LaunchImage.launchimage/[iphone][][2x][portrait][full-screen][][Default@2x.png]: warning: The launch image set "LaunchImage" has 3 unassigned images.
    17: [xcode] /BUILD_PATH/BVR_TEMP_DIR/d20141028-25562-19wul9b/Unity-iPhone/Images.xcassets:./LaunchImage.launchimage/[iphone][][2x][portrait][full-screen][]: warning: LaunchImage.launchimage/Default-667h@2x.png is 750x1334 but should be 640x960.
    18: [xcode] /BUILD_PATH/BVR_TEMP_DIR/d20141028-25562-19wul9b/Classes/UI/iAD.mm:340:83: warning: 'ADBannerContentSizeIdentifier320x50' is deprecated: first deprecated in iOS 4.2 [-Wdeprecated-declarations]
    19: [xcode] /BUILD_PATH/BVR_TEMP_DIR/d20141028-25562-19wul9b/Classes/UI/iAD.mm:342:84: warning: 'ADBannerContentSizeIdentifier480x32' is deprecated: first deprecated in iOS 4.2 [-Wdeprecated-declarations]
    20: [xcode] /BUILD_PATH/BVR_TEMP_DIR/d20141028-25562-19wul9b/Classes/UI/iAD.mm:350:95: warning: 'ADBannerContentSizeIdentifier320x50' is deprecated: first deprecated in iOS 4.2 [-Wdeprecated-declarations]
    21: [xcode] /BUILD_PATH/BVR_TEMP_DIR/d20141028-25562-19wul9b/Classes/UI/iAD.mm:352:96: warning: 'ADBannerContentSizeIdentifier480x32' is deprecated: first deprecated in iOS 4.2 [-Wdeprecated-declarations]
    22: [xcode] clang: error: linker command failed with exit code 1 (use -v to see invocation)
    23: [xcode] ** BUILD FAILED **
    24: ! build of 'default-ios' failed. compile failed
    25: Finished: FAILURE
    Status: FAILED


    Really not getting anywhere with this thanks
     
  2. hypeNate

    hypeNate

    Unity Technologies

    Joined:
    Apr 4, 2014
    Posts:
    272
    Hi @tommyblock - what version of Unity are you using? Also which version of Xcode? Thanks!
     
  3. Aladine

    Aladine

    Joined:
    Jul 31, 2013
    Posts:
    195
    I am facing the same problem now, it happened after we deleted the AppLovin Plugin, i still have a backup project with AppLovin in and the xCode compile just fine.

    Unity Version : 4.5.4f1
    xCode version : 5.1

    I tried this answer and it didn't work :
    http://answers.unity3d.com/questions/538363/error-when-i-updated-to-xcode-5-to-get-import-to-i.html

    And for this one i can't find the files he is talking about (iPhone_View.mm, also i have no PostProcessBuildPlayer file in Assets/Editor) :
    http://answers.unity3d.com/questions/574600/unity-43-wont-build-in-xcode.html

    EDIT;
    full log :

    Thank you
     
    Last edited: Oct 28, 2014
  4. tommyblock

    tommyblock

    Joined:
    Jul 28, 2014
    Posts:
    2
    It is Unity 4.5.5f1
    Xcode 5.1.1

    I have tried to complie the app using a mac and it works ok.
    The issue seems to lie with building it on a windows pc using the cloudbuild

    Thanks for getting back to me
     
  5. Coks

    Coks

    Joined:
    Jul 23, 2012
    Posts:
    28
    Aladine, you have not removed all the plugin files. You should delete all files with prefix "AL". It helped me.
     
  6. bsmith

    bsmith

    Joined:
    Oct 26, 2014
    Posts:
    9
    This is happening again... Unity 5.1.1 and XCode 7.
     
  7. David-Berger

    David-Berger

    Unity Technologies

    Joined:
    Jul 16, 2014
    Posts:
    745
    There is no XCode 7 in Unity Cloud Build right now. o_O Do you mean 6?
     
  8. bsmith

    bsmith

    Joined:
    Oct 26, 2014
    Posts:
    9
    XCode 7 Beta 3 Trying to develop for iOS 9.
     

    Attached Files:

  9. David-Berger

    David-Berger

    Unity Technologies

    Joined:
    Jul 16, 2014
    Posts:
    745
    Yes, it's available, but not in Unity Cloud Build, so if you have this problem locally on your desktop it belongs to the iOS forums as there are iOS devs monitoring the forums who can help you. This post is related to Unity Cloud Build where the project needs to build properly on a desktop anyway. I hope that makes sense? :D
     
    bsmith likes this.