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
- Bad performance when executing the Physics.IgnoreCollisions() method while in Play Mode
- Sprite Editor has a thicker separator between buttons when "Sprite Editor" option is selected
- "NullReferenceException: Object reference not set to an instance of an object" error is thrown when UpdateVolumeStack function is called
- [Windows] Unicode custom text input window shows question marks when inserting an emoji
- Memory leak when the VFX Graph Editor is open
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.