-
-
Notifications
You must be signed in to change notification settings - Fork 58
chore: Remove -mno-thumb from Xcode projects for unity-of-bugs
#1921
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
-mno-thumb from Xcode projects for unity-of-bugs
06fc2e5 to
7d1af1a
Compare
|
|
||
| # Copy samples | ||
| Copy-Item "samples/unity-of-bugs/Assets/Scenes*" -Destination "package-release/Samples~/unity-of-bugs/" -Recurse | ||
| Copy-Item "samples/unity-of-bugs/Assets/Editor*" -Destination "package-release/Samples~/unity-of-bugs/" -Recurse |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We had nothing there in the first place.
| return; | ||
| } | ||
|
|
||
| Debug.Log("XcodeUpdater.OnPostProcessBuild started."); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This logger doesn't let us opt out or set level right? are we not using our logger here why?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is a script that lives outside the SDK and is not part of the shipped package.
It's is purely there to help us run builds locally, when targeting iOS on old Unity versions.
vaind
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Only change to our sample. LGTM ![]()
Why?
With versions 2019 and 2020 Unity exports with a
-mno-thumbflag by default. With the current version of Xcode (16.1) building those projects fails with"unsupported option '-mno-thumb' for target". Those versions of Unity are also out-of-support and won't likely receive an update.How this fixes it
I've added added a
PostProcessBuildthat removes the flag. This allows us to still build for iOS on Unity 2019 and 2020. This script resides inside ofAssets/Editor/and is excluded from being packaged. Endusers will not have his script as part of the package.#skip-changelog