xcode - iOS simulator: could not hardlink copy. Wrong path in my filesystem? -
i using xcode version 6.1 (6a1052d)
i trying launch app on simulator.
the first time works fine. if want launch second time, have error (see log below). in ios simulator "reset content , settings" , can launch again successfully.
given error log, think must have wrong path. problem bad mac filesystem , path linking, appreciated.
edit: here info.plist.xml (generated libgdx if matters)
<?xml version="1.0" encoding="utf-8"?> <!doctype plist public "-//apple//dtd plist 1.0//en" "http://www.apple.com/dtds/propertylist-1.0.dtd"> <plist version="1.0"> <dict> <key>cfbundledevelopmentregion</key> <string>en</string> <key>cfbundledisplayname</key> <string>${app.name}</string> <key>cfbundleexecutable</key> <string>${app.executable}</string> <key>cfbundleidentifier</key> <string>${app.id}</string> <key>cfbundleinfodictionaryversion</key> <string>6.0</string> <key>cfbundlename</key> <string>${app.name}</string> <key>cfbundlepackagetype</key> <string>appl</string> <key>cfbundleshortversionstring</key> <string>${app.version}</string> <key>cfbundlesignature</key> <string>????</string> <key>cfbundleversion</key> <string>${app.build}</string> <key>lsrequiresiphoneos</key> <true/> <key>uiviewcontrollerbasedstatusbarappearance</key> <false/> <key>uistatusbarhidden</key> <true/> <key>uidevicefamily</key> <array> <integer>1</integer> <integer>2</integer> </array> <key>uirequireddevicecapabilities</key> <array> <string>armv7</string> <string>opengles-2</string> </array> <key>uisupportedinterfaceorientations</key> <array> <!-- <string>uiinterfaceorientationportrait</string> --> <string>uiinterfaceorientationlandscapeleft</string> <string>uiinterfaceorientationlandscaperight</string> </array> <key>cfbundleicons</key> <dict> <key>cfbundleprimaryicon</key> <dict> <key>cfbundleiconfiles</key> <array> <string>icon</string> <string>icon-72</string> </array> </dict> </dict> </dict> </plist>
and robovm.xml:
app.version=1.0 app.id=<my package name>.ioslauncher app.mainclass=<my package name>.ioslauncher app.executable=ioslauncher app.build=1 app.name=<my app name>
i have tried identify more precisely error advice of jeremy, in system.log inside folder of virtual device. system.log has lot of entries around time of crash, might have missed something... anyway have found these potentials errors:
nov 28 09:03:44 as-macbook-pro installd[668]: 0x10e3d0000 createdictfromfile: open failed /users/<myname>/library/developer/coresimulator/devices/d1c6e4ce-abf3-4621-b811-913f1705cbe0/data/containers/bundle/application/ca2b6d8c-1a62-4da6-8433-aa4678d009e1/manifestcache.plist : no such file or directory nov 28 09:03:44 as-macbook-pro installd[668]: 0x10e4d6000 writedicttofile: ==== wrote manifest cache /users/<myname>/library/developer/coresimulator/devices/d1c6e4ce-abf3-4621-b811-913f1705cbe0/data/library/caches/com.apple.mobile.installd.staging/temp.gcgkcy/extracted/manifestcache.plist nov 28 09:03:44 as-macbook-pro installd[668]: 0x10e3d0000 validate_stream: got manifest version "1 1.0", expected version "1 " nov 28 09:03:44 as-macbook-pro installd[668]: 0x10e3d0000 hardlink_copy_hierarchy: failed open manifest /users/<myname>/library/developer/coresimulator/devices/d1c6e4ce-abf3-4621-b811-913f1705cbe0/data/library/caches/com.apple.mobile.installd.staging/temp.gcgkcy/extracted/com.apple.deltainstallcommands.<my app.id>
the original crash log eclipse console (device name folders different have tested on multiple virtual devices, error same)
11/27/14 9:58:17 am: [error] session not started: error domain=launchserviceserror code=0 "unable run app in simulator" userinfo=0x7fc8eb900d70 {error=packagepatchfailed, errordescription=could not hardlink copy /users/<myname>/library/developer/coresimulator/devices/055a18bc-73b5-4ea6-a872-488fa69f4750/data/containers/bundle/application/ccf8c472-c48f-41d7-8885-e83830256ee3/ioslauncher.app /users/<myname>/library/developer/coresimulator/devices/055a18bc-73b5-4ea6-a872-488fa69f4750/data/library/caches/com.apple.mobile.installd.staging/temp.tsgen1/extracted/payload/ioslauncher.app manifest /users/<myname>/library/developer/coresimulator/devices/055a18bc-73b5-4ea6-a872-488fa69f4750/data/library/caches/com.apple.mobile.installd.staging/temp.tsgen1/extracted/com.apple.deltainstallcommands.<pathtomyappexec>, nslocalizedfailurereason=an error encountered while running (domain = launchserviceserror, code = 0), nsunderlyingerror=0x7fc8ebb1a500 "the operation couldn’t completed. (launchserviceserror error 0.)", nslocalizeddescription=unable run app in simulator}
this indeed triggered order of keys in app's info.plist file , seems bug in ios simulator's installd
process. installd
seems unable read cfbundleshortversionstring
, cfbundleversion
values. i've found if robovm makes sure move values first in info.plist
writes out prevent bug in installd
being triggered. have implemented workaround in robovm (see issue #771) , in next nightly build (the 20150222 build) , in next release.
nightly builds of robovm can downloaded http://download.robovm.org. install nightly build of eclipse plugin should use update site
http://download.robovm.org/nightlies/eclipse/site.xml
nightly snapshot builds of robovm maven , gradle plugins pushed maven central.
Comments
Post a Comment