2

Im trying to run the IOS9 iphone 6 app in Xcode 7 and swift 2.0, but I can't. If I reset the content and Simulator settings, the first time works but the second one fails again, I have cleaned up the app, I have cleaned the build folder, I have tried setting the NSAllowsArbitraryLoads key to yes, Sorry, but I have a headache searching what's going on. Appreciate help

the error in the coresimulator.log is

    07/10/15 21:51:02,800 com.apple.CoreSimulator.CoreSimulatorService[410]: 
Error Domain=LaunchServicesError Code=0 "(null)" 
UserInfo={Error=PackagePatchFailed, 
ErrorDescription=Could not hardlink copy
 /Users/edu/Library/Developer/CoreSimulator/Devices/F25180D1-32CD-47E0-9823-D1626546D660/data/Containers/Bundle/Application/7E6A0B88-3B33-435F-A645-3367B6F47154/vippler.app.ios.app 
to /Users/edu/Library/Developer/CoreSimulator/Devices/F25180D1-32CD-47E0-9823-D1626546D660/data/Library/Caches/com.apple.mobile.installd.staging/temp.LDNqVX/extracted/Payload/vippler.app.ios.app 
with manifest /Users/edu/Library/Developer/CoreSimulator/Devices/F25180D1-32CD-47E0-9823-D1626546D660/data/Library/Caches/com.apple.mobile.installd.staging/temp.LDNqVX/extracted/com.apple.deltainstallcommands.com.Bitamine.vippler-app-ios}

and the screenshot of the info.plist is

enter image description here

Edu
  • 430
  • 10
  • 31
  • Many dupes. Please search before posting questions. See http://stackoverflow.com/questions/25632886/an-error-was-encountered-while-running-domain-launchserviceserror-code-0/26129829#26129829 – Jeremy Huddleston Sequoia Oct 06 '15 at 03:18
  • Sorry but I tried all ways of this thread and the error persist – Edu Oct 06 '15 at 20:00
  • Then please update your question to include the underlying error. As indicated in my answer (referenced above), the "LaunchServicesError 0" just indicates that something went wrong. It does not indicate *what* went wrong. You need to pull that information out of CoreSimulator.log and the device's system.log. – Jeremy Huddleston Sequoia Oct 06 '15 at 23:04
  • I've just edited the question, I hope its clear. – Edu Oct 07 '15 at 20:17

4 Answers4

6

From the screenshot, it's clear that your Info.plist is missing a CFBundleVersion ("Bundle Version") key. If that key is missing, it can cause this problem.

Jeremy Huddleston Sequoia
  • 21,715
  • 5
  • 69
  • 82
  • What is the difference between "Bundle Version string, short" and "Bundle Version"? – Tom Tallak Solbu Mar 05 '16 at 10:50
  • 1
    Take a look at the documentation for the keys: https://developer.apple.com/library/ios/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html --- CFBundleShortVersionString is localizable and not as restrictive. CFBundleVersion needs to follow a strict versioning convention. – Jeremy Huddleston Sequoia Mar 06 '16 at 00:28
0

Based on error description Error=PackagePatchFailed, ErrorDescription=Could not hardlink copy we would say the compiler couldn't find the path of the resource such as frameworks, images. But the main problem probably is Pod. So try to delete all the cached files by following these steps

  1. command shift G
  2. paste this path /Library/Developer/Xcode/DerivedData
  3. delete relevant finders
  4. Reset Content and settings of the simulator
  5. re-compile the project

Cheers

0

Changing the entire project root directory path seems to somehow work for me

WKL
  • 394
  • 1
  • 3
  • 16
-1

Make the Exception In Transport Security along with the "NSAllowsArbitraryLoads"

  • The error described in the question is a build time error. Problems with NSAllowsArbitraryLoads can only be related to Runtime issues – Oded Regev Jun 09 '16 at 07:56