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
- var VisionOSEDRHeadromm has a comma instead of a dot when building with Metal Rendering App Mode and local OS localization is set to German
- IAP Catalog remove product “x” and add product “+” buttons are not consistent with other remove and add buttons in the Editor
- Performance issues in Play Mode when quickly hovering the mouse cursor over Hierarchy GameObjects
- Frame Debugger displays incorrect output when FidelityFX Super Resolution or Spatial-Temporal Upscaler is used with Temporal Anti-aliasing or Subpixel Morphological Anti-aliasing
- Crash with “Fatal Error! The file ‘MemoryStream’ is corrupted!” when adding a large number in Font Character Rects Size field
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.