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
- WebGL Player with WebGPU Graphics API fails to render Scene when custom Render Feature is used
- “EndLayoutGroup” error thrown when changing Shader Precision Model settings in Build Profiles window > Player Settings Overrides
- Button hover state uses default theme color when a custom .uss is applied
- Samples Showcase script warning does not clear after enabling required settings until GameObject is reselected
- VFX Particles receive shadow artifacts when using ShaderGraph with enabled shadows and Face Camera Plane Orient mode
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.