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. Dismiss Notice

Xcode 12 eta?

Discussion in 'Unity Build Automation' started by FamilyGamesTime, Aug 21, 2020.

  1. bradunity

    bradunity

    Unity Technologies

    Joined:
    Nov 12, 2013
    Posts:
    195
    @Kujo87, that is still the plan. We obviously want to get it out as soon as possible and are wrapping up the final fixes right now. I suspect it'll happen before the 20th, unless there are more unexpected issues that crop up.
     
    Kujo87 likes this.
  2. Kujo87

    Kujo87

    Joined:
    Sep 16, 2013
    Posts:
    160
    Thanks for the update Brad - good to know!
     
  3. unity-tuesday

    unity-tuesday

    Unity Technologies

    Joined:
    Aug 2, 2016
    Posts:
    42
    Good news, everyone!

    Xcode 11.7 and 12.2 are running smoothly from our tests, and the builders are ready to go! :D

    A reminder on compatible versions:
    • Unity 5: Not Compatible
    • Unity 2017: 2017.4.33f1 and >
    • Unity 2018: 2018.4.10f1 and >
    • Unity 2019: 2019.3.0f1 and >
    • Unity 2020: All versions
    • Unity 2021: All versions
     
    gdoai, thibouf, WolveX and 7 others like this.
  4. Deleted User

    Deleted User

    Guest

    Build app on Xcode 12.2 and Unity 2019.4.16f1

    [iTMSTransporter] Error: Could not create the Java Virtual Machine.
    [iTMSTransporter] Error: A fatal exception has occurred. Program will exit.
     
  5. victorw

    victorw

    Unity Technologies

    Joined:
    Sep 14, 2016
    Posts:
    459
    Are you using a custom fastlane setup?
     
  6. Kujo87

    Kujo87

    Joined:
    Sep 16, 2013
    Posts:
    160
    Amazing - thanks guys!
     
  7. Deleted User

    Deleted User

    Guest

    Yes
    lane :upload do
    upload_to_testflight(skip_submission: true, skip_waiting_for_build_processing: true)
    upload_symbols_to_crashlytics(gsp_path: "./GoogleService-Info.plist")
    end
     
  8. bearhugmo

    bearhugmo

    Joined:
    Mar 20, 2019
    Posts:
    19
    We are seeing the same thing. Also using a custom fastlane setup with `upload_to_testflight`.
     
  9. gdoai

    gdoai

    Joined:
    Apr 14, 2020
    Posts:
    11
    Amazing job for XCode 12 support in UCB!

    But same thing on my side with custom Fastlane:

    32724: ----------------------------------
    32725: --- Step: upload_to_testflight ---
    32726: ----------------------------------
    32727: Ready to upload new build to TestFlight (App: xxxxxxxxx)...
    32728: Fetching password for transporter from environment variable named `FASTLANE_APPLE_APPLICATION_SPECIFIC_PASSWORD`
    32729: Going to upload updated app to App Store Connect
    32730: This might take a few minutes. Please don't interrupt the script.
    32731: [iTMSTransporter] -Djava.ext.dirs=/APPLICATION_PATH/Xcode12_2_0.app/Contents/SharedFrameworks/ContentDeliveryServices.framework/Versions/A/itms/java/lib/ext is not supported. Use -classpath instead.
    32732: [iTMSTransporter] Error: Could not create the Java Virtual Machine.
    32733: [iTMSTransporter] Error: A fatal exception has occurred. Program will exit.
    32734: The call to the iTMSTransporter completed with a non-zero exit status: 1. This indicates a failure.
     
  10. Starburst999

    Starburst999

    Joined:
    May 8, 2017
    Posts:
    37
    Got the same error as well for XCode 12

    Could not create the Java Virtual Machine


    Custom fastlane with "upload_to_testflight"
     
  11. JamesA24

    JamesA24

    Joined:
    Sep 6, 2018
    Posts:
    26
    For IOS, I have Cloud Build set to *Always Use Latest 2019.3*.
    The latest is 2019.3.15f, which is greater than 2019.3.0f1.
    Please fix.
     
  12. victorw

    victorw

    Unity Technologies

    Joined:
    Sep 14, 2016
    Posts:
    459
    Added that now.

    Yeah this seems to be a conflict between Catalina and the currently installed version of fastlane which hits the upload_to_testflight command. I'll try to get fastlane updated in the next few days which should resolve that issue.
     
    baruchadi, gdoai and Starburst999 like this.
  13. DAC

    DAC

    Joined:
    Mar 6, 2013
    Posts:
    9
    Hello!
    I built my project in UCB using config Xcode 12.2.0 and Unity 2020.1.11f1 / 2020.2.0f1. But when upload the received ipa to AppStore, I received the following message in both cases:
    ERROR ITMS-90206: "Invalid Bundle. The bundle at 'myapp.app/Frameworks/UnityFramework.framework' contains disallowed file 'Frameworks'."
    Why?
     
  14. ocnenued

    ocnenued

    Joined:
    Apr 4, 2018
    Posts:
    26
    This is because UnityFramework in XCode has a build setting which tries to include Swift binaries. We wrote a custom script that unmarks this option in postprocess (feel free to remove foreach).


    Code (CSharp):
    1. #if UNITY_IOS
    2. using UnityEditor;
    3. using UnityEditor.Callbacks;
    4. using UnityEditor.iOS.Xcode;
    5.  
    6. namespace Scripts.Editor
    7. {
    8.     public class PostProcessBuild
    9.     {
    10.  
    11.         [PostProcessBuild]
    12.         public static void OnPostprocessBuild(BuildTarget target, string path)
    13.         {
    14.             if (target == BuildTarget.iOS)
    15.             {
    16.                 string projPath = PBXProject.GetPBXProjectPath(path);
    17.                 PBXProject proj = new PBXProject();
    18.                 proj.ReadFromFile(projPath);
    19.                 foreach (var framework in new[] { proj.GetUnityFrameworkTargetGuid() })
    20.                 {
    21.                     proj.SetBuildProperty(framework, "EMBEDDED_CONTENT_CONTAINS_SWIFT", "NO");
    22.                     proj.SetBuildProperty(framework, "ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES", "NO");
    23.                 }
    24.        
    25.                 proj.WriteToFile(projPath);
    26.             }
    27.          
    28.         }
    29.     }
    30. }
    31. #endif
     
  15. victorw

    victorw

    Unity Technologies

    Joined:
    Sep 14, 2016
    Posts:
    459
    Fastlane has now been updated to 2.170.0, this should resolve the issue with upload_to_testflight command
     
  16. victorw

    victorw

    Unity Technologies

    Joined:
    Sep 14, 2016
    Posts:
    459
    Just FYI I'm rolling back the fastlane upgrade temporarily since `rubygems` just released a new version which broke things. Will try to get it back out within a few hours.
     
    dirty-rectangle likes this.
  17. victorw

    victorw

    Unity Technologies

    Joined:
    Sep 14, 2016
    Posts:
    459
    I was able to fix the dependency issue and redeploy the fastlane upgrade just now.
     
    MaffiuF42, gdoai and WolveX like this.
  18. damelin

    damelin

    Joined:
    Jul 3, 2012
    Posts:
    64
    Trying Xcode 12.2 (with latest Unity 2019.4, which is 2019.4.16 at this time) and I'm having this error. This is an iOS build:

    (Edit: just saw your yesterday post about the fastlane update, maybe it brokes things again?)


    1: Running Prebuild steps
    2: In quiet period, build will start momentarily...
    3: Using /BUILD_PATH/.rvm/gems/ruby-2.4.2
    4: Successfully uninstalled bvr-2.0.9
    5: Successfully uninstalled bvr-3.0.13
    6: Successfully uninstalled bvr-3.0.25
    7: Successfully uninstalled bvr-3.0.35
    8: Successfully uninstalled bvr-3.0.56
    9: Successfully uninstalled bvr-3.0.71
    10: Removing bvr
    11: Removing bvr_runner
    12: Successfully uninstalled bvr-3.0.90
    13: ERROR: While executing gem ... (NoMethodError)
    14: undefined method `satisfied_by?' for nil:NilClass
    15: Before retry #1: sleeping 5.0 seconds
    16: ERROR: While executing gem ... (NoMethodError)
    17: undefined method `satisfied_by?' for nil:NilClass
    18: Before retry #2: sleeping 10.0 seconds
    19: ERROR: While executing gem ... (NoMethodError)
    20: undefined method `satisfied_by?' for nil:NilClass
    21: Before retry #3: sleeping 20.0 seconds
    22: ERROR: While executing gem ... (NoMethodError)
    23: undefined method `satisfied_by?' for nil:NilClass
    24: Before retry #4: sleeping 40.0 seconds
    25: ERROR: While executing gem ... (NoMethodError)
    26: undefined method `satisfied_by?' for nil:NilClass
    27: Before retry #5: sleeping 80.0 seconds
    28: ERROR: While executing gem ... (NoMethodError)
    29: undefined method `satisfied_by?' for nil:NilClass
    30: Retries exhausted
    31: ERROR: Requested BVR version not available.
    32: Build failed. Please check the log for further details.
    33: Using /BUILD_PATH/.rvm/gems/ruby-2.4.2
    34: Finished: FAILURE
     
  19. victorw

    victorw

    Unity Technologies

    Joined:
    Sep 14, 2016
    Posts:
    459
    I just had a look and it looks like you ran those builds during the service interruption which forced me to roll back and redeploy fastlane. If you run more builds now you should not see this issue anymore.
     
    damelin likes this.