-
Notifications
You must be signed in to change notification settings - Fork 61
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
[Fix] iOS bitcode build error #645
Conversation
README.md
Outdated
@@ -117,7 +117,9 @@ After building in Unity and exporting the XCode project follow these steps: | |||
|
|||
![extension signing and groups](Documentation/ios_extension_sign_and_groups.png) | |||
|
|||
6. **App Groups** should now be provisioned for you going forward for your iOS bundle id, even on clean builds. | |||
**App Groups** should now be provisioned for you going forward for your iOS bundle id, even on clean builds. |
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.
Shouldn't this stay as step 6?
README.md
Outdated
6. **App Groups** should now be provisioned for you going forward for your iOS bundle id, even on clean builds. | ||
**App Groups** should now be provisioned for you going forward for your iOS bundle id, even on clean builds. | ||
|
||
6. Make sure all **Targets** have **Enable Bitcode** set to **No** in **Build Settings**. |
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.
Per note above, this should be step 7.
@@ -111,6 +111,14 @@ public class BuildPostProcessor : IPostprocessBuildWithReport { | |||
// Add the service extension | |||
AddNotificationServiceExtension(); | |||
|
|||
// Unity Tests |
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 method's logic is mostly declarative vs imperative. Can we make a new method call something like DisableBitcode()
?
@@ -152,6 +160,8 @@ public class BuildPostProcessor : IPostprocessBuildWithReport { | |||
var targetGuid = _project.GetMainTargetGuid(); | |||
var targetName = _project.GetMainTargetName(); | |||
|
|||
_project.SetBuildProperty(targetGuid, "ENABLE_BITCODE", "NO"); |
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 method is named AddProjectCapabilities
which shouldn't touch something unrelated like bitcode. I recommend moving this to the new DisableBitcode()
method I suggested above.
@@ -12,6 +12,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 | |||
### Fixed | |||
- Sending VSAttribution data from the editor | |||
- iOS notifications clicked event firing if the app was cold started from clicking a notification | |||
- iOS bitcode build error |
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.
I would state we are disabling bitcode to avoid a build error.
25e59a3
to
9f8aae8
Compare
3460436
to
2159755
Compare
[Fix] iOS bitcode build error
[Fix] iOS bitcode build error
[Fix] iOS bitcode build error
[Fix] iOS bitcode build error
[Fix] iOS bitcode build error
[Fix] iOS bitcode build error
[Fix] iOS bitcode build error
[Fix] iOS bitcode build error
Description
One Line Summary
Fixes iOS "does not contain bitcode" build error by disabling bitcode
Details
Motivation
Prevent iOS builds from failing with default "Enable Bitcode" value and documents setting "Enable Bitcode" to "No".
Testing
Manual testing
Tested OneSignal initialization, app build with Unity 2022.3.10f1 of the OneSignal example app on a physical iPhone 12 with iOS 15.5.
Affected code checklist
Checklist
Overview
Testing
Final pass
This change is