天道酬勤,学无止境

iPhone SDK4.0 and xcode 3.2.3 issue

Question

My app was building and running well in xcode 3.2.2 with iPhone SDK 3.1.3. Now, I upgraded the SDK to 4.0 with xcode 3.2.3 and tried running the app. All I could see there after in the iPhone Simulator 4 is the opening splash screen (Default.png) followed by a BLANK BLACK screen. This is driving me nuts. No change in code yet, the app fails loaded in the latest xcode/simulator. Tried just about everything suggested in this past thread but no luck yet.

Upgrade to iPhone 3.0 sdk and now simulator shows blank screen

Btw, I have a MainWindow.xib in my project but I have extended the default UIWindow object.

Answer1

I had this same issue, found an answer in the thread that you posted that worked for me, not sure why it changed this value on my previously launched and active apps as well, but fixed the issue, resolved.


  1. Open mainwindow in IB,
  2. Select the "Window"
  3. Under the inspector's "Window Attributes" (cmd + 1), make sure the [Window] property for: "Visible at launch" is selected!
  4. Save (cmd + s) and then run!!
    Not sure how this got set to Unchecked, honestly I wasn't even aware that this was an option, guess some apps could make use of this, but I would imagine that most apps need to see the main window.

Hope this helps you out, was a life saver for me, I was going nuts trying to figure out the "Black Screen"

标签

Restricted HTML

  • Allowed HTML tags: <a href hreflang> <em> <strong> <cite> <blockquote cite> <code> <ul type> <ol start type> <li> <dl> <dt> <dd> <h2 id> <h3 id> <h4 id> <h5 id> <h6 id>
  • Lines and paragraphs break automatically.
  • Web page addresses and email addresses turn into links automatically.

相关推荐
  • SenTestCase in Xcode 3.2 and XCBuildLogCommandInvocationSection Errors
    Question I have a set of SenTestCase that are causing issues in XCode 3.2.4. When attempting to compile (with a very basic STFail(@"");) the following compiler errors occur: An internal error occurred when handling command output: - [XCBuildLogCommandInvocationSectionRecorder endMarker]: unrecognized selector sent to instance An internal error occurred when handling command output: - [XCBuildLogCommandInvocationSection setTestsPassedString:]: unrecognized selector sent to instance I've included the SenTestkingKit.framework from '/Developer/Library/Frameworks' and just created by target by
  • Install Xcode 3.2.3 w/ iPhone SDK 4, get “Base SDK missing”, can't see other SDKs
    Question I created this community wiki to bind together a number of other Q/A's I've seen here on SO. If you're here, you've probably installed the final version of Xcode 3.2.3 with iPhone SDK 4 (download link, reg reqd), and then encountered one or both of these problems: In your previously working Xcode iPhone project, you get "Base SDK Missing" somewhere. Something like this: In a related but more general observation, none of the previously available panoply of Device or Simulator SDK choices (e.g. 3.0, 3.1, 3.1.3, ...) is available where you used to see them. Answer1 Overview I'm going to
  • setFetchLimit and sectionNameKeyPath on iPhone OS4 (XCode 3.2.3) cause crash
    Question Previously, on iPhone OS 3.2 with XCode 3.2.2 this used to work fine. I have created a small test to prove it. An NSManagedObject with 2 attributes, "group" and "vaue". Both strings. When setting up an NSFetchedResultsController to be used in the TableViewController, I set up the setFetchLimit on the request and I set the sectionNameKeyPath to "group", since I want the result entities to be grouped in sections. The former behaviour (prior iPhone OS 4 and XCode 3.2.3) would return the resultset of entites containing the maximum amount of entities specified in the limit. With the new OS
  • How to fix “failed codesign verification” of an iPhone project?
    Question Last night, the iPhone project was built perfectly. This morning, I installed XCode 3.2.3 in a separate folder. When I open the same project in the old XCode 3.2.2 and re-built the project. I got this warning: Application failed codesign verification. The signature was invalid, or it was not signed with an Apple submission certificate. (-19011) How can I fix it? Thanks! Answer1 I had the same problem, seems 3.2.3 messes with codesigning. I fixed it by re-running the 3.2.2 installer, no need to uninstall anything. Answer2 For me the following steps resolved the issue: Go to Product >
  • iPhone Simulator 3.x not listed after upgrading to XCode 3.2.3 Beta4 with OS 4.0
    Question When I last installed Xcode 3.2.3 Beta 2 (OS 4.0 support), it had all the iPhone Device & Simulator 3.x. Now, updated to Xcode 3.2.3 Beta 4 (OS 4.0 support), it no longer lists 3.x SDKs for either simulator or device in XCode. When I run an app that was written for 3.1.2, the current SDK is listed as "base SDK missing" I'm aware that 3.2.3 changes the BASE SDK to 4.0, but how come none of the 3.x devices are available either? When I go to: /Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs The only two files available are: iPhoneSimulator3.2.sdk iPhoneSimulator4.0.sdk
  • XCode fails to deploy iPhone app to iPhone 3GS
    Question So I built my iPhone app and it runs fine in the simulator so I wanted to deploy it to my iPhone for one last testing round before I go into open beta testing wiht my distribution profile. I did this numerous times already and it has never been a problem. However since the last test run I upgraded both my iPhone (iOS 4) and XCode (Version 4 DP2) so maybe the problem is rooted there. The build process runs fine and successful - after that XCode tries to deploy it to my iPhone and fails with a simple "An unknown error has occured". Stumped by this I took a look in the system.log and
  • CLLocationManager on iPhone Simulator fails with kCLErrorDomain Code=0
    Question CLLocationManager on iPhone Simulator is supposed to fake Cupertino (isn't it?) but it does NOT, it fails with kCLErrorDomain Code=0 instead. LocationManager's delegate receives the message didFailWithError. This method is implemented to log the error and the console outputs the following: Error Domain=kCLErrorDomain Code=0 "The operation couldn’t be completed. (kCLErrorDomain error 0.)" I was working on a real project when I ran into this problem but it is pointless to discuss my code because I downloaded "Locations" sample code (updated 2010-06-22 for iOS 4) from the dev center and
  • iPhone with iOS 6 and Xcode 4.2 issue
    Question I have upgraded my iPhone to iOS 6, however I am currently on Xcode 4.2 (on Snow Leopard). Now I am getting this error message: The version of iOS on “xxx xxx” does not match any of the versions of iOS supported for development with this installation of the iOS SDK. Please restore the device to a version of the iOS listed below, or update to the latest version of the iOS. Is it possible to restore my iPhone to older version say 5.1 or some how make my Xcode to support/recognize iOS6? Answer1 I followed the following steps, to resolve my issue by making Xcode to support iOS 6: 1.First
  • IOS 8 Simulator unable to boot
    Question When I try to run my app with Xcode 6 Beta 4 on the Simulator iOS 8.0 I always get this error: Unable to boot the iOS Simulator Actually I found some similar questions on this site and I tried all the answers and I still couldn't solve it. I had the same error with the Beta 2 version of Xcode 6 so I decided to wait. But now this is not normal anymore. Did anyone find a reason why this is happening and found the solution? Answer1 I am very happy that finally my issue resolved. Thanks to apple who helped me. For those who are still looking for solution, here is the one which helped me
  • iOS: Watch Kit paired device unavailable for development
    Question I can't run my Apple Watch application in XCode. My phone+watch is listed as a "Unavailable Device" and says "paired device unavailable for development". When I try to launch the app it says the same thing. How can I resolve this? I'm using XCode 7.1, iOS 9.0, WatchOS 2.0.1. Answer1 This is what worked for me, and it is a lot easier and faster than un-pairing so I would try this first. From the Clock Face Swipe up, and click on the Ping iPhone button. After it makes a sound, go back in Xcode it should change no longer be unpaired or unavailable for development. Answer2 I had the same
  • iPhone Xcode project.pbxproj + Subversion = code signing issue?
    Question Try to commit my first iPhone application to Subversion found that there's "code signing identity" section in my xcode project.pbxproj file. CODE_SIGN_IDENTITY = "iPhone Developer: my username here...; "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer: above..."; The issue is, in our team we use different provisioning which bound to our device. So when other want to run the code on device, they have to change this line. We can share one provisioning to across this, but that way have several downside. Is there any other way to solve it? i.e. include code signing section to
  • “The run destination iOS Device is not valid for running the scheme”
    Question I've been running my app on an iPhone 5 /iOS 6, but when I try to run it on an iPhone 4S / iOS6 I get "The run destination iOS Device is not valid for running the scheme NN. The Scheme contains no buildables that can be built for the architectures supported by the run designation device". I've looked at previous postings on this but they involve issues with the Deployment Target. In my case I've got the Base SDK set to 6.1 and the Deployment Target set to 5.0. The iPhone 4 has got iOS version 6.0.1. Answer1 It was a bug in XCode, I closed and reopened Xcode and it started working. I
  • Why won't AVFoundation link with my XCode 3.2.3 iPhone 4.0.1 project?
    Question I'm following the reference at http://developer.apple.com/iphone/library/qa/qa2010/qa1702.html to capture video from the iPhone camera. It's a fresh project aside from the code from that page. I added the AVFoundation framework to the project as well. Here's the linker errors I get: Build my project of project my project with configuration Debug CompileC "build/my project.build/Debug-iphoneos/my project.build/Objects-normal/armv6/MainViewController.o" /Users/mwilliamson/Projects/my_project/iphone/Classes/MainViewController.m normal armv6 objective-c com.apple.compilers.gcc.4_2 cd
  • Xcode “Device Locked” When iPhone is unlocked
    Question When I tried to build and run, Xcode said my device was locked. I looked at my iPhone, and it's not locked at all. How do I fix this? Answer1 Did you by chance not "trust" the device? This will prevent it from communicating with xcode even if the device is unlocked. Update here's a support doc from Apple: http://support.apple.com/en-us/HT5868 Answer2 My phone was set to "trust" the Mac, and I still ran into this error with Xcode 6.1.1. This worked for me: unplug device quit xcode open xcode plug in device build/run Answer3 I recently ran into this issue with XCode 8 just after
  • (XCode 7 + iOS 9 + iPhone 4s/iPhone5 only) issue: “malloc: *** mach_vm_map(size=1048576) failed (error code=3)”
    Question I know the issue is related to memory allocations, but I get it in only iOS 9, XCode 7. In XCode 6.4, iOS 8.4, it works just perfect, no issue at all at any ways. In iOS 9, XCode 7, it just crashes very frequently giving this error. malloc: *** mach_vm_map(size=1048576) failed (error code=3) *** error: can't allocate region securely *** set a breakpoint in malloc_error_break to debug Any suggestions? I am working on memory issues, but I wonder if there were too many memory issues, then why did it work in iOS 8.4 and not in iOS 9? Also, I get all my UI whited out! Like navigation bar
  • I get conflicting provisioning settings error when I try to archive to submit an iOS app
    Question Now I'm trying to Product>Archive my iOS app to submit. However, I am getting following errors: AppName has conflicting provisioning settings. AppName is automatically signed for development, but a conflicting code signing identity iPhone Distribution has been manually specified. Set the code signing identity value to iPhone Developer in the build settings editor, or switch to manual signing in the project editor.` Code signing is required for product type 'Application' in SDK 'iOS 10.1'` The situation won't change even those I've retry a whole process to recreate iOS certificates or
  • Xcode fails to get the task for process XXX. How do I solve this? (iPhone SDK 4.0)
    Question I have the following error when I try to run a new project on my ipod: Error launching remote program: failed to get the task for process 312. The program being debugged is not being run. I've read about Entitlements.plist, and I've tried to add the get-task-allow, but then it doesn't let me compile because of a code signing error. I only have a development provisioning profile, so it's not the same as the people who were trying to debug the distribution build (I'm also in the debug build, so that isn't a problem). Old projects build and run fine on the ipod, just new projects. I've
  • Device Will not run error iOS 9 Xcode 7.0
    Question I recenlty upgraded my device to iOS 9. The device will not work in Xcode 7.1, when tying to run get the error: An error was encountered while enabling development on this device. Please try rebooting and reconnecting the device. (0xE8000076) So I updated iTunes and dowloaded Xcode 7.0 as suggested here, cleaned and built. No luck. Any input appreciated. Answer1 Well, it's worth trying to do as the error message proposes: reboot and reconnect the device. UPDATE: it is possible, that two reboots are required. Take a look at comments to this answer. UPDATE 2: If nothing else helps, try
  • Xcode debug with iPhone app is slow and laggy
    Question I am debugging an iPhone app I'm writing in Xcode, but sometimes now the debugger (which is GDB) slows a lot (doing a step-by-step debugging) and becomes unresponsive sometimes (the icons for stepping-in, stepping-over, stepping-out are not clickable), after sometimes it gets back to normal and continues and other times it stay like that forever or a message appears in console: "Timed out" (or something similar) and I can see my CPU from activity monitor going up to 90%. As a workaround I used to put a brekpoint after the line of code I was interested in and simply went with 'Continue
  • Error : The service is invalid
    Question I am having some problem in installing my app on the iphone as I am constantly getting the following error message The service is invalid Please check your setup and try again (0XE8000022) It was running perfectly well till yesterday but since yesterday I am having this problem. Answer1 Xcode and the GDB connection is quite temperamental. The device and your Mac can become unsynchronised with each other. My checklist for this sort of thing: Restart Xcode. Delete the .app from your iOS device, do a Clean then Rebuild. Disconnect, reconnect device. Restart iOS device (90% of the time it