Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 12 Next capture
2021 2022 2023
1 capture
12 Jun 22 - 12 Jun 22
sparklines
Close Help
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
  • Help Room /
avatar image
0
Question by Rabadash8820 · Apr 06, 2020 at 05:00 AM · iosil2cppproject settings

C++ Compilter Configuration Disabled in iOS Project Settings

Can someone please explain why C++ Compiler Configuration is disabled in the iOS project settings (see screenshot below), but not in the Android project settings? Moreover, should I expect any issues if I try to set the configuration to something other than Release inside a build script (via PlayerSettings.SetIl2CppCompilerConfiguration)? I am using Unity 2019.3.0f6 Plus on Windows 10 Pro (1903).

C++ Compiler Configuration disabled in iOS project settings

ios-il2cpp-compiler-config.png (9.5 kB)
Comment
Add comment
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

1 Reply

· Add your reply
  • Sort: 
avatar image
1
Best Answer

Answer by JoshPeterson · Apr 06, 2020 at 11:12 AM

This option is disable for iOS project because the actual compilation of the C++ code IL2CPP generates is done in Xcode, not via Unity. Therefore, the build configuration setting in Xcode controls this option. The Android build, on the other hand, it driven by the Unity Editor, so this setting applies.

Changing this setting in a build script will apply it to all platforms where it matters. That is, it will apply for Android, but not for iOS.

Comment
Add comment · Show 6 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image Rabadash8820 · Apr 06, 2020 at 07:27 PM 0
Share

Ah, okay that makes sense. Could you clarify what this means for some other build settings? I assume that code stripping of managed assemblies still happens in the Unity Editor, so using PlayerSettings.Set$$anonymous$$anagedStrippingLevel() would apply to iOS, but what about PlayerSettings.stripEngineCode? Also, how can it be that am I able to run IL2CPP-backed iOS builds on my Windows machine if the build requires Xcode?

avatar image JoshPeterson Rabadash8820 · Apr 06, 2020 at 07:33 PM 0
Share

The stripping level and strip engine code options do apply on iOS, because both happen before the C++ compilation.

If you are building for iOS on Windows, the build output is an Xcode project. You will need to copy that project to a macOS computer to actually build it.

avatar image Rabadash8820 JoshPeterson · Apr 06, 2020 at 07:37 PM 0
Share

Excellent, thanks for clarifying. I only run iOS builds locally to troubleshoot Cloud Build errors, so I guess I've never technically made a complete iOS build locally before.

avatar image Rabadash8820 · Apr 06, 2020 at 07:31 PM 0
Share

Also, I know this is kind of going on a tangent now, but do you have any idea why calling PlayerSettings.SetIl2CppCompilerConfiguration() in a Cloud Build pre-export method would not have any effect?

avatar image JoshPeterson Rabadash8820 · Apr 06, 2020 at 07:33 PM 0
Share

Sorry, I'm not sure how this plays with cloud build at all.

avatar image Rabadash8820 Rabadash8820 · Apr 06, 2020 at 07:37 PM 0
Share

Okay, no worries, guess I'll post a separate question. Thanks again for your answer!

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this Question

Answers Answers and Comments

230 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

iOS crash during game play. il2cpp related 0 Answers

Xcode - Mach-O Linker Error after upgrade to Unity 2019.4 (LTS) 0 Answers

iOS, Photon and IL2CPP build error 0 Answers

Can I change the placement path of "Data" folder? 0 Answers

Help! Null exception and "filename currently not available on il2cpp Line: -1", 1 Answer


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges