Search Unity

iOS Build Failing (2019.3.0f1 / Xcode 11.2.1)

Discussion in 'Unity Build Automation' started by mcarriere, Dec 5, 2019.

  1. mcarriere

    mcarriere

    Joined:
    Sep 14, 2012
    Posts:
    106
    We're seeing an odd failure in our logs for 2019.3 builds; the Player export succeeds, but during the IPA generation process, we see this failure:

    6552: error: exportArchive: IPA processing failed
    6553: Error Domain=IDEFoundationErrorDomain Code=1 "IPA processing failed" UserInfo={NSLocalizedDescription=IPA processing failed}

    Everything else in the log indicates things moving along smoothly, and we can safely build the player on a local computer with the same setup, so we're pretty confident the code is in good shape at this point.
     
    JeffTheCampbell likes this.
  2. mcarriere

    mcarriere

    Joined:
    Sep 14, 2012
    Posts:
    106
    Any chance someone can look into this? Still an issue.
     
  3. mcarriere

    mcarriere

    Joined:
    Sep 14, 2012
    Posts:
    106
    @victorw This continues to be an issue for us -- seems to be an issue with fastlane and/or something after the build export process.

    Code (CSharp):
    1.  
    2. 6515: ▸ Touching wearableunity.app
    3. 6516: ▸ Signing /BUILD_PATH/Library/Developer/Xcode/DerivedData/Unity-iPhone-bzkmasgwdeteggapnathfwwqajew/Build/Intermediates.noindex/ArchiveIntermediates/Unity-iPhone/InstallationBuildProductsLocation/APPLICATION_PATH/wearableunity.app
    4. 6517: ▸ Touching wearableunity.app.dSYM
    5. 6518: ▸ Archive Succeeded
    6. 6519: Generated plist file with the following values:
    7. 6520:-----------------------------------------
    8. 6521:{
    9. 6522: ▸   "method": "development",
    10. 6523: ▸   "uploadSymbols": false,
    11. 6524: ▸   "provisioningProfiles": {
    12. 6525: ▸     "com.zapdot.demo.wearableunity": "[REDACTED]"
    13. 6526: ▸   },
    14. 6527: ▸   "signingStyle": "manual",
    15. 6528: ▸   "teamID": "73H2ZK62U7"
    16. 6529:}
    17. 6530:-----------------------------------------
    18. 6531: RVM detected, forcing to use system ruby
    19. 6532: Now using system ruby.
    20. 6533: error: exportArchive: IPA processing failed
    21. 6534: Error Domain=IDEFoundationErrorDomain Code=1 "IPA processing failed" UserInfo={NSLocalizedDescription=IPA processing failed}
    22. 6535: ** EXPORT FAILED **
    23. 6536: Exit status: 70
    24. 6537: +---------------+-------------------------------+
    25. 6538: |               Build environment               |
    26. 6539: +---------------+-------------------------------+
    27. 6540: | xcode_path    | /APPLICATION_PATH/Xcode11_2_1.app |
    28. 6541: | gym_version   | 2.135.2                       |
    29. 6542: | export_method | development                   |
    30. 6543: | sdk           | iPhoneOS13.2.sdk              |
    31. 6544: +---------------+-------------------------------+
    32. 6545: ▸     cd /BUILD_PATH/zapdot-inc.aura-plugin.demo-ucb-ios-20193/Unity/temp20191216-3139-1s61ra5
    33. 6546: ▸     export PATH="/APPLICATION_PATH/Xcode11_2_1.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin:/APPLICATION_PATH/Xcode11_2_1.app/Contents/Developer/usr/bin:/BUILD_PATH/.rvm/gems/ruby-2.4.2/bin:/BUILD_PATH/.rvm/gems/ruby-2.4.2@global/bin:/BUILD_PATH/.rvm/rubies/ruby-2.4.2/bin:/BUILD_PATH/.rvm/bin:/BUILD_PATH/.nvm/versions/node/v10.16.3/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/UNITY_PATH/Unity/p4/macos:/usr/local/bin:/UNITY_PATH/Unity/p4/macos:/UNITY_PATH/Unity/android/sdk_29_0_0:/UNITY_PATH/Unity/p4/macos/:/UNITY_PATH/Unity/p4/windows/"
    34. 6547: ▸     /usr/bin/touch -c /BUILD_PATH/Library/Developer/Xcode/DerivedData/Unity-iPhone-bzkmasgwdeteggapnathfwwqajew/Build/Intermediates.noindex/ArchiveIntermediates/Unity-iPhone/BuildProductsPath/Release-iphoneos/wearableunity.app.dSYM
    35. 6548:** ARCHIVE SUCCEEDED **
     
  4. victorw

    victorw

    Joined:
    Sep 14, 2016
    Posts:
    459
  5. mcarriere

    mcarriere

    Joined:
    Sep 14, 2012
    Posts:
    106
    I have not! I always wondered if the desired vector for reporting these issues was the forums or something else. I'll absolutely do this.

    Edit: Ticket #756018

    Thanks!
     
    Last edited: Dec 16, 2019
  6. victorw

    victorw

    Joined:
    Sep 14, 2016
    Posts:
    459
    Forums are useful since other users might be encountering the same issue and might even know how to resolve it. If you're pretty sure that your issue is unique and you just need someone at Unity to stare at your logs then support tickets are preferable. The support ticket gives us a lot of extra information that we need and it attracts the attention of our support engineers who are more experienced with this kind of investigation.
     
    mcarriere likes this.
  7. dimitris_baud

    dimitris_baud

    Joined:
    Jan 15, 2018
    Posts:
    31
    I had the same issue on the same versions of Unity and Xcode where archive succeeded but export failed with an "IPA processing" error like the one reported above.

    In my case it was insufficient hard disk space. As soon as I freed up some space I was able to export the build successfully. If that is the case, a more meaningful error would have been appropriate.
     
  8. mcarriere

    mcarriere

    Joined:
    Sep 14, 2012
    Posts:
    106
    Just wanted to report back on this one, in case anyone else runs into this issue.

    It turned out that this started failing on 2019.3 exports when you use PBXProject to set a build property for the ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES key to True.

    Oddly enough, this only causes an issue for 2019.3, and does not cause any issues with project exports in 2017.4, 2018.1, 2018.2, 2018.3, 2018.4, 2019.1, and 2019.2.
     
    MechEthan likes this.
  9. excalith

    excalith

    Joined:
    Dec 18, 2013
    Posts:
    15
    Last edited: Feb 22, 2020
  10. victorw

    victorw

    Joined:
    Sep 14, 2016
    Posts:
    459
    Thanks for posting the issue tracker link - I talked to the mobile team and confirmed that the milestone was set incorrectly for that issue tracker resolution (it is actually only fixed in 2020.1 currently). I've now requested a backport for this issue to be resolved in 2019.3.

    If anyone does want to try out 2020.1 in the meantime then please let me know. I've just put the latest 2020.1 alpha into testing so we can hopefully enable it soon for anyone who wants to have alpha access configured.
     
  11. JohnMindforce

    JohnMindforce

    Joined:
    Nov 6, 2018
    Posts:
    1
    This is also blocking us completely from upgrading to 2019. We cannot upgrade to 2020 since we use cloud build and some other things would break with 2020.

    Ive been looking at each update to 2019.3 but as of 2019.3.5 this is not resolved(atleast in the changelog)... Can we please get an update on this?
     
  12. Denchyaknow

    Denchyaknow

    Joined:
    Aug 4, 2015
    Posts:
    31
    Ran into this same error via a cloud build target to 2019.3.5 , will update on any solutions I stumble upon
     
  13. Alexflame108

    Alexflame108

    Joined:
    Sep 24, 2019
    Posts:
    23
    Has this problem been solved on 2019.4?
     
  14. Alexflame108

    Alexflame108

    Joined:
    Sep 24, 2019
    Posts:
    23
  15. victorw

    victorw

    Joined:
    Sep 14, 2016
    Posts:
    459
    This was fixed in 2019.3.12f1 and as far as I know it is still fixed in 2019.4
     
  16. Alexflame108

    Alexflame108

    Joined:
    Sep 24, 2019
    Posts:
    23
    Thanks for the reply.

    Ill try that.
     
  17. valeracogut-datasakura

    valeracogut-datasakura

    Joined:
    Apr 8, 2020
    Posts:
    1
    still have the same problem in Unity 2020.1.16f1 , Unity 2020.1.17f1

    can someone help please ?
     
  18. poliq

    poliq

    Joined:
    Sep 21, 2020
    Posts:
    1
    Today we decide to migrate our project to 2020.2.0, it was 2019.4.0 before and things work fine. Now I have to google pages trying to find out a solution. But never mind, since every time we upgrade our project to a new version, nightmare comes, we are used to it.
     
  19. cmersereau

    cmersereau

    Joined:
    Nov 6, 2020
    Posts:
    52
    My team is running into this issue using 2020.1.14f1. Our builds were working fine until a few weeks ago but we are all scratching our heads now. Is there general information that can be given to understand why this might be happening?
     
  20. xVergilx

    xVergilx

    Joined:
    Dec 22, 2014
    Posts:
    3,296
    Check full logs, might be a clue there.
     
  21. cmersereau

    cmersereau

    Joined:
    Nov 6, 2020
    Posts:
    52