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

Question How to keep Xcode build settings after rebuilding project in Unity? (pulling my hair here)

Discussion in 'iOS and tvOS' started by SlavomirDurej, Mar 8, 2023.

  1. SlavomirDurej

    SlavomirDurej

    Joined:
    Oct 25, 2018
    Posts:
    30
    I have an iOS Unity (2020.3.6) project. To prevent it from crashing, once build I have to do a number of things in XCode 14 to get it running correctly.

    • Add / setup signing (provisioning prof etc)
    • Add Workspace > Pods > MobileFuseSDK.xcframework to the "Frameworks libraries, and Embeded Content" section
    • Turn off bitcode (Build Options > Enable Bitcode : No
    • Edit Info.plist (adding 2 keys NSUserTrackingUsageDescription and ITSAppUsesNonExemptEncryption)

    As far as I can tell, none of the above can be done in Unity 2020 so it needs to be done in Xcode manually.

    The most amazingly frustrating thing is, ALL of the above has to be done EACH time after I build the iOS project in Unity!

    I am fairly new to Unity iOS builds, so maybe I'm missing something obvious, and I sincerely hope there is a solution for such a glaringly obvious workflow issue!

    Is there?
     
    Last edited: Mar 8, 2023
  2. spacefrog

    spacefrog

    Joined:
    Jun 14, 2009
    Posts:
    732
  3. SlavomirDurej

    SlavomirDurej

    Joined:
    Oct 25, 2018
    Posts:
    30