Search Issue Tracker
By Design
Votes
1
Found in [Package]
2019.4.18f1
2020.3
2021.1
2021.2
Issue ID
1329731
Regression
No
[iOS] [ARKit Face Tracking] Build fails in Xcode, arm64 function not 4-byte aligned
Reproduction steps:
1. Open customer's attached project (steps for access in steps)
2. Build for iOS and open the Xcode project generated
3. Try to deploy the Application to an iOS device
Expected result: The Application deploys successfully
Actual result: The Application fails to deploy, arm64 function not 4-byte aligned: warning (and some errors)
Reproducible with: ARKit Face Tracking 4.1.7 (2020.3.8f1, 2021.1.7f1)
Could not test with:
2021.2.0a17 (Script in package requires implicit cast, but the script restores to original when building)
ARKit Face Tracking 4.2.0-pre.7 (build errors)
2018.4, 2019.4 because of errors when downgrading the project
Notes:
1. The errors are not the same in different versions, but there is always a 4-byte alignment warning
2. The customer mentioned that the issue starts to occur when Face Tracking features are being used
Add comment
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- “FocusController has unprocessed focus events.” warnings are thrown after adding iOS, tvOS or visionOS Build Profiles
- Holes and different colors appear on default Tree Materials after applying them to the Tree GameObject and undoing changes
- Error indicating that the Text Asset Importer hasn't been disposed properly is logged when switching Importer Type in a Focused Inspector
- Documentation installation shows "Install failed: Validation Failed" when installing Android Build Support module
- Error indicating that the Package Manifest Importer hasn't been disposed properly is logged when switching Importer Type in a Focused Inspector
Resolution Note:
The issue is because the Xcode project uses the linker flag "all_load". That isn't something Unity normally adds; it appears to be added by a build post-processor (iOSPostProcessor.cs) in a 3rd party SDK.
When we remove "all_load" from UnityFramework > Build Settings > Linking > Other Linker Flags, the project builds successfully.