Semyon Tikhonenko
Semyon Tikhonenko

Reputation: 4262

iOS Simulator fails every time after building and starting app second time. How to fix?

I've started to learn iOS development. And I use AppCode and Swift. After starting AppCode first time everything is OK. But when I try to build and start project again this window appears:

enter image description here

And then project is successfully built and this message appears in the simulator log:

com.apple.CoreSimulator.CoreSimulatorService[1181]: Error Domain=LaunchServicesError Code=0 "(null)" UserInfo={Error=PackagePatchFailed, ErrorDescription=Could not hardlink copy /Users/mac/Library/Developer/CoreSimulator/Devices/037261F9-6926-4755-AD40-08C0D88B8703/data/Containers/Bundle/Application/95BECC1C-DE32-4529-9BFC-81F3C97AB1A6/Test.app to /Users/mac/Library/Developer/CoreSimulator/Devices/037261F9-6926-4755-AD40-08C0D88B8703/data/Library/Caches/com.apple.mobile.installd.staging/temp.pRI2uY/extracted/Payload/Test.app with manifest /Users/mac/Library/Developer/CoreSimulator/Devices/037261F9-6926-4755-AD40-08C0D88B8703/data/Library/Caches/com.apple.mobile.installd.staging/temp.pRI2uY/extracted/com.apple.deltainstallcommands.Pizdaxui.Test}

If found the solution:
I should run Simulator -> Reset Contents And Settings. But It's really annoying to do this every time. Is there any other solution to fix this?

Upvotes: 0

Views: 805

Answers (1)

Gopal Devra
Gopal Devra

Reputation: 614

I think you should try Xcode, which is the official IDF for making applications for Apple.

Or you could fix it by restarting your IDE.

Upvotes: -5

Related Questions