Search Issue Tracker
Third Party Issue
Votes
3
Found in
2019.4
2020.3
2021.1
2021.2
2021.2.0a13
Issue ID
1329291
Regression
Yes
[M1] [iOS] build fails in Xcode when launching from M1 Silicon Mac "file system sandbox blocked", "error loading dlopen"
Reproduction steps:
1. Create a new project
2. Build for iOS
3. Open the project generated in Xcode
4. Deploy to "My Mac (Designed for iPad)" target in Xcode
5. Wait for the build to succeed
Expected result: the application launches
Actual result: the application fails to launch with errors: "file system sandbox blocked", "error loading <file path>: dlopen"
Workaround: After step 3, select Unity-iPhone, go Build phases, Link binary with libraries and add UnityFramework.framework to the list
Tested with:
Mac mini (M1, 2020) 8GB, OSX 11.2.1
Mac mini (M1, 2020) 16GB, OSX 11.2.3
Reproducible with: 2019.4.0f1, 2019.4.24f1, 2020.3.5f1, 2021.1.4f1, 2021.2.0a13
Not reproducible with 2018.4.34f1
Not reproducible with standalone Mac builds using Xcode
-
kylekaturn
Apr 18, 2021 09:36
To KILES
It has nothing to do with Simulator SDK.
New M1 mac can run iOS app (built with iOS SDK) natively.
And xcode with M1 mac can do also.
This is some kind of bug of Unity. And most importantly , 2018.4.34 doesnt have this problem. -
kiles
Apr 17, 2021 18:42
Have you selected "Simulator SDK" in the player settings?
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
- Tile Palette selected dropdown text does not update when palette is renamed
- ArgumentException thrown and reference to Template gets unset when opening UXML file after editing referenced Template in Play mode
- [iOS][WebGL] Player freezes when multiple properties of a VisualElement are changed at the same time
- Warning 'GetControlID at event ValidateCommand returns a controlID different from the one in the Layout event' is logged when undoing the deletion of an Edited Freeform 2D Light
- ShadowCaster2D breaks on certain Rotation positions when Casting Source is set to PolygonCollider2D
Resolution Note (2021.2.X):
This is a bug in macOS Sandbox, bug report was sent to Apple. There are two options to workaround this issue:
1. Link binary with UnityFramework
1.1. Build iOS app and open Xcode project.
1.2. In Project navigator select project file
1.3. Select 'Unity-iPhone' target
1.4. Go to 'Build Phases' tab
1.5. In 'Link Binary With Libraries' section click plus icon and 'UnityFramework.framework'
1.6. Build and run. It should work like expected now.
2. Build specifically for M1
2.1. In Unity Editor open Build Settings
2.2. In platform list select 'Windows, Mac, Linux' and click 'Switch Platform' button at the bottom right
2.3. For 'Target Platform' select 'macOS'
2.4. For 'Architecture' select 'Apple Silicon' or 'Intel 64-bit + Apple Silicon'
2.5. (Optional) Enable 'Create Xcode Project'
2.6. Build.