I am using Xcode 4.5 and iOS Simulator Version 6*. I added images to my Xcode project but when I simulate the iPhone, they are not showing up. I see the following in syslog:
SpringBoard[33587] <Error>: CGContextDrawImage: invalid context 0x0. This is a serious error. This application, or a library it uses, is using an invalid context and is thereby contributing to an overall degradation of system stability and reliability. This notice is a courtesy: please fix this problem. It will become a fatal error in an upcoming update.
Aug 23 15:04:18 new-host-22.home SpringBoard[28968] <Warning>: No file exists for default image of name starting_image_i5_retina
Aug 23 15:04:20 new-host-22.home[28982] <Notice>: BUG in libdispatch: 12E55 - 866 - 0x2
Aug 23 15:04:20 new-host-22.home[28982] <Notice>: BUG in libdispatch client: kevent[EVFILT_VNODE] add: "Bad file
No idea what is happening. I have tried deleting the app, clean builds, etc.
Go to build phases under your target and go to "copy Bundle Resources" and click the plus button and add the file, clean your build, delete the app, and run it in xcode and the file should be there.
Related
I'm gonna try to explain the problem as clearly as possible, here are the steps:
I compile the app on the device (width bundled file on disk - Options 2)
The app starts, and work
After a few days, when i click on the app's icon, it open the 'powered by react-native' screen, then it crash
I had the same problem over multiple devices, and multiple times
I'm pretty sure it is not a JS error, since nothings change between the day it work, and the day it doesnt
here's the app logs on app start:
$ cat crachReport|grep MyApp
Aug 29 14:26:47 Abels-iPhone amfid[1524] <Notice>: /private/var/containers/Bundle/Application/BDC567B0-B341-4B9A-8329-90B5CEC26440/MyApp.app/MyApp not valid: 0xe8008015: A valid provisioning profile for this executable was not found.
Aug 29 14:26:47 Abels-iPhone SpringBoard(BaseBoard)[1682] <Error>: Unable to get pid for 'UIKitApplication:org.reactjs.native.example.MyApp[0x9347]': No such process (err 3)
Aug 29 14:26:47 Abels-iPhone SpringBoard(FrontBoard)[1682] <Error>: Bootstrapping failed for <FBApplicationProcess: 0x1705f9500; org.reactjs.native.example.MyApp; pid: -1>
Aug 29 14:26:47 Abels-iPhone sharingd[62] <Notice>: SystemUI unknown identifier: 'org.reactjs.native.example.MyApp'
the unfound provisionning profile error does not appear on the logs when the app work, so i think it may come from here.
However i'm not sure since i'm new to ios developpement,
Thanks in advance
After compilation with a valid provisionning profile, this problem does not appear.
The default provisionning profile was valid for 7 days, so the error was coming from there.
After install macOS Sierra + Xcode 8 beta
My Xcode 7.3.1 can't run iOS simulator anymore,
How can i fixed this?
here is system logs.
Jun 15 07:46:11 Siams-MacBook-Pro com.apple.xpc.launchd[1] (com.apple.CoreSimulator.CoreSimulatorService[2246]): Service exited due to signal: Killed: 9 sent by com.apple.CoreSimulator.CoreSimu[2246]
Jun 15 07:46:12 Siams-MacBook-Pro com.apple.CoreSimulator.CoreSimulatorService[2748]: com.apple.CoreSimulator.CoreSimulatorService 209.19 starting.
Jun 15 07:46:12 Siams-MacBook-Pro com.apple.CoreSimulator.CoreSimulatorService[2748]: Default device D340C405-CF9F-482C-82CE-ADE8A2399529 is no longer in the set, and an alternative could not be found. iPhone / Watch pairings may not be correct.
Jun 15 07:46:12 Siams-MacBook-Pro com.apple.CoreSimulator.CoreSimulatorService[2748]: Default device C3CBAFAD-D139-49CE-9EF1-E2437A2349A7 is no longer in the set, and an alternative could not be found. iPhone / Watch pairings may not be correct.
Jun 15 07:46:12 Siams-MacBook-Pro com.apple.CoreSimulator.CoreSimulatorService[2748]: Default device 0916CCBC-1DAA-4CA4-8DCA-FFD87C8941E0 is no longer in the set, and an alternative could not be found. iPhone / Watch pairings may not be correct.
Jun 15 07:46:12 Siams-MacBook-Pro com.apple.CoreSimulator.CoreSimulatorService[2748]: Default device 9CC780B5-3034-4083-B52F-2354FB0A8252 is no longer in the set, and an alternative could not be found. iPhone / Watch pairings may not be correct.
Another log
Jun 15 10:03:26 Siams-MacBook-Pro DTServiceHub[11482]: DTServiceHub[11482]: [error] 'mach_msg_send' failed: (ipc/send) invalid destination port (268435459)
Jun 15 10:03:36 Siams-MacBook-Pro Xcode[10188]: +[DTServiceHubClient localConnectionWithAuthorization:returningServerPid:]: failed to establish connection with DTServiceHub service '/Applications/Xcode.app/Contents/SharedFrameworks/DVTInstrumentsFoundation.framework/Resources/DTServiceHub'
Jun 15 10:03:36 Siams-MacBook-Pro Xcode[10188]: Xcode[10188]: [error] 'mach_msg_send' failed: (ipc/send) invalid destination port (268435459)
Short term solution:
Build app
The app will still install on the simulator, even with the error
Launch the app manually on the simulator
Go to Xcode
Click Debug > Attach to Process > Your App Name
This isn't recommended since you have to do it every time you want to run your app.
Long term solution (recommended):
Reinstall Xcode from the Developer Center. Doing so will clear this error, and the app will run smoothly.
This should work.
Build app
The app will still install on the simulator, even with the error
Launch the app manually on the simulator
Go to Xcode
Click Debug > Attach to Process > Your App Name
I fixed the problem by deleting both XCode 7.3.1 and 8 Beta and reinstalling just XCode 7.3.1 from DMG.
I've dug into several threads (here, here, and here to name a few) but I just cannot figure this out. I've cleared cache, reset the simulator, tripled checked .plist files, cloned my repo again, and even reinstalled Xcode.
And here's the rub - the same repo works on my other machine. Here is log error:
Oct 8 09:51:09 CoreSimulatorService[1941] <Error>: Could not register service com.apple.coreservices.lsuseractivity.simulatorsupport: Failed to lookup com.apple.coreservices.lsuseractivity.simulatorsupport: 0x44e
Oct 8 09:51:11 com.apple.dt.Xcode[1927] <Error>: Error Domain=LaunchServicesError Code=0 "(null)" UserInfo={Error=ExecutableTwiddleFailed, ErrorDescription=Failed to chmod file:///Users/Jason/Library/Developer/CoreSimulator/Devices/0593D533-2974-4464-937C-B77EC0299078/data/Library/Caches/com.apple.containermanagerd/Temp/Bundle/Application/FA2B923A-1015-43E5-BA59-716BBD114A3D/Test.app/PlugIns/TestActionExtension.appex/TestActionExtension : No such file or directory}
I also tried clearing the cache where it's looking for the extension that's giving me issues.
I have final version of XCode 6 (version 6.0.1). In my project, I have problem when running it.
I got
"App installation failed - Could not inspect the application package."
If I run project again, it runs ok. Another run, problem again... etc. So every second run ends in this error, right after that application run just fine.
I have no problem in XCode 5.
If you have moved or copied a folder named resources or resource into your project, try renaming it. Then perform a clean.
I had the same issue, And was unable to install the ipa. It always ended with an error "Could not inspect the application package." and some warnings in device console
Feb 10 17:38:16 iPhone mobile_installation_proxy[356] <Warning>: LaunchServices: Please include the kCFBundleIdentifierKey in the options dictionary when installing an app.
Feb 10 17:38:16 iPhone mobile_installation_proxy[356] <Warning>: LaunchServices: installing app with unknown bundleID
.
.
Feb 10 17:38:16 iPhone installd[44] <Error>: 0x101bcc000 -[MIBundle _validateWithError:]: 28: Failed to load Info.plist from bundle at path
Feb 10 17:38:16 iPhone installd[44] <Error>: 0x101bcc000 + [MIInstallable installablesAtURL:packageFormat:userOptions:error:]: Failed to create bundle for …
After spending hours, I got it fixed by adding the "Application requires iPhone environment" in info.plist
<key>LSRequiresIPhoneOS</key>
<true/>
I started to develop an iOS application that needs to use the Google Maps SDK. I followed the steps on the Google web page and added it successfully to the project. The problem is that now my testers cannot download the app via TestFlight, which is distributed with Ad-hoc provision profile and signing. There is an error at the last stage of the progress bar "Unable to download the application right now". -> Done, Retry. I do not know the exact message as it is not English for me. But the message is such small, and the meaning is correct.
The app runs well on the ios simulator, and also on my iphone device, with the working map display as well.
I went through the process now 4 times and finally I was able to identify which step causes this: the step to add the googleMaps.bundle to my resources inside the app. So if I remove the bundle from the list of Frameworks (keep the SDK itself) then the app is compilable, downloadable via TestFlight. If I put it back, it is not. Of course I have runtime crash if the bundle is missing, so I cannot do that.
When i open the console log in the Organizer it tell this:
Nov 26 09:42:17 -iPhone-keszuleke installd[1030] <Error>: 0x2ffe6000 MobileInstallationInstall_Server: Installing app hu.vivify.muzeumtura
Nov 26 09:42:18 -iPhone-keszuleke installd[1030] <Error>: Nov 26 09:42:18 SecTrustEvaluate [leaf CriticalExtensions IssuerCommonName]
Nov 26 09:42:18 -iPhone-keszuleke installd[1030] <Error>: 0x2ffe6000 verify_signer_identity: MISValidateSignatureAndCopyInfo failed for /var/tmp/install_staging.sFC3ox/foo_extracted/Payload/muzeumtura.app/muzeumtura: 0xe8008017
Nov 26 09:42:18 -iPhone-keszuleke installd[1030] <Error>: 0x2ffe6000 do_preflight_verification: Could not verify executable at /var/tmp/install_staging.sFC3ox/foo_extracted/Payload/muzeumtura.app
Nov 26 09:42:18 -iPhone-keszuleke itunesstored[72] <Error>: 0x1698000 MobileInstallationInstall: failed with -1
Nov 26 09:42:18 -iPhone-keszuleke installd[1030] <Error>: 0x2ffe6000 install_application: Could not preflight application install
Nov 26 09:42:18 -iPhone-keszuleke installd[1030] <Error>: 0x2ffe6000 handle_install: API failed
Then after a few more hours I have found the advice of trying the terminal for the codesign command. This gives a lot of missing resources in the googleMaps.bundle:
Desktop/Payload/muzeumtura.app: a sealed resource is missing or invalid
In architecture: armv7
resource missing: /Users/daz/Desktop/Payload/muzeumtura.app/GoogleMaps.bundle/GMSCoreResources.bundle/._polyline_colors_texture.png
resource missing: /Users/daz/Desktop/Payload/muzeumtura.app/GoogleMaps.bundle/GMSCoreResources.bundle/nl.lproj/._GMSCore.strings
resource missing: /Users/daz/Desktop/Payload/muzeumtura.app/GoogleMaps.bundle/GMSCoreResources.bundle/._tr.lproj
resource missing: /Users/daz/Desktop/Payload/muzeumtura.app/GoogleMaps.bundle/GMSCoreResources.bundle/de.lproj/._GMSCore.strings
resource missing: /Users/daz/Desktop/Payload/muzeumtura.app/GoogleMaps.bundle/GMSCoreResources.bundle/el.lproj/._GMSCore.strings
resource missing: /Users/daz/Desktop/Payload/muzeumtura.app/GoogleMaps.bundle/GMSCoreResources.bundle/._ru.lproj
resource missing: /Users/daz/Desktop/Payload/muzeumtura.app/GoogleMaps.bundle/GMSCoreResources.bundle/._ms.lproj
... and so on. It is strange that these files listed are all hidden (starting with ._) I do not know it this has any connection to the Testflight problem, or whether this issue in the terminal is critical or not (this is the first time to use the codesign command for me). But I guess so. Please help me find this out, as it must be something trivial, because the app is very simple and I am sure I am not the only one on this planet who wants to integrate the googleMaps SDK into the ios app.
Some more info:
I have XCode 5.0, OSX 10.8.4
I have enabled to show hidden files in Finder
I want to build for armv7
This is the issue with testflight, sometimes happened with me too. This is not particularly related with google maps, try other methods
Distribute ipa to client
OK, that was my fault. When the GoogleMaps.bundle was added to the project by the drag-n-drop, the bundle was on a disk with exFAT partition table! Who would have thought that this can be a reason? I am sad because one and half day of my life and the project had gone. But I am happy that now it works. Good advice: do not use exFAT for iPhone development!