Xcode 7 simulator symlink support removed

Hi,


After upgrading my version of Xcode to version 7 I now when attempting to run my app am presented with a pop-up stating:

Domain = FBSOpenApplicationErrorDomain, Code = 4

(good read https://devforums.apple.com/thread/248879?tstart=0fyi)


After reading the simulator logs I see

Jan 4 13:45:20 atss-imac-5 installd[17268]: 0x700000117000 -[MIInstaller performInstallationWithError:]: Installing <MIInstallableBundle ID=uk.co.atsheritage.stpauls; Version=5, ShortVersion=1.4>

Jan 4 13:45:20 atss-imac-5 installd[17268]: 0x700000117000 -[MIFileManager realPathForURL:ifChildOfURL:]: Rejecting /Users/dev07/Library/Developer/CoreSimulator/Devices/B1F43F78-F2B6-4E75-B920-36F8C216C6AA/data/Library/Caches/com.apple.mobile.installd.staging/temp.LYNfa0/extracted/MyApp/Resources/Media/MediaFilesDir -> /Users/dev07/Workspace/Project/MyApp/Resources/Media/MediaFilesDir, as absolute symlinks are not allowed

Jan 4 13:45:20 atss-imac-5 installd[17268]: 0x700000117000 __78-[MIFileManager standardizeOwnershipAndValidateSymlinksAtURL:toUID:GID:error:]_block_invoke: 363: invalid symlink at /Users/dev07/Library/Developer/CoreSimulator/Devices/B1F43F78-F2B6-4E75-B920-36F8C216C6AA/data/Library/Caches/com.apple.mobile.installd.staging/temp.LYNfa0/extracted/MyApp.app/Media/MediaFilesDir

Jan 4 13:45:20 atss-imac-5 installd[17268]: 0x700000117000 -[MIInstaller performInstallationWithError:]: Preflight stage failed

Jan 4 13:45:20 atss-imac-5 CoreSimulatorBridge[17283]: 0x700000117000 __MobileInstallationInstallForLaunchServices_block_invoke222: Returned error Error Domain=MIInstallerErrorDomain Code=70 "invalid symlink at /Users/dev07/Library/Developer/CoreSimulator/Devices/B1F43F78-F2B6-4E75-B920-36F8C216C6AA/data/Library/Caches/com.apple.mobile.installd.staging/temp.LYNfa0/extracted/MyApp.app/Media/MediaFilesDir" UserInfo={LegacyErrorString=70,FunctionName=__78-[MIFileManager standardizeOwnershipAndValidateSymlinksAtURL:toUID:GID:error:]_block_invoke, SourceFileLine=363, NSLocalizedDescription=invalid symlink at /Users/dev07/Library/Developer/CoreSimulator/Devices/B1F43F78-F2B6-4E75-B920-36F8C216C6AA/data/Library/Caches/com.apple.mobile.installd.staging/temp.LYNfa0/extracted/MyApp.app/Media/MediaFilesDir}


My app has 4gb of video files. How am I to reasonably test changes when Xcode must now copy all these files to the simulator directory, which is not a quick process.


Is there a way to re-enable absolute symlinks?


Thanks,

Ryan

Accepted Reply

What runtime version are you seeing this with?

Replies

What runtime version are you seeing this with?

Hi, I suffer same error, and in case of physical device, device console also tells the same stuff about absolute symlinks. My device is iOS 9.2.1. Simulator is iOS 9.2. Both iPhone 5.


Note that similiar issues are being advised to be solved by trying again and again (the race condition problem), it does not appear to work, or be related at all. The app is even not installed at all, so I am not able to launch manually either.