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
- Mono Windows Builds don't produce full log callstacks when generating logs
- AssetBundles fail to load when running in Built Players for Mobile Devices
- UI elements with text gets bigger and grey when Player window is moved to another screen with different resolution
- System name accepts multiline text but crops it on confirmation, duplicates input, and shrinks the field when empty
- UI element scale and position are wrong in project build when DRS is changed with HDR and Software Dynamic Resolution enabled
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.