I've created a project in Xcode, added a splash screen then deleted it. Now when I create a new project with the same name - the splash screen is automatically used.
My guess is this is due to a reference from a previous project? How do I clear this stuff out for good?
You have to clean your project.
Go to Product -> Clean.
Related
I'm getting the error 'Launch Storyboard not found' in Xcode 10 when trying to upload the Archive to TestFlight.
I added LaunchScreen to the Info Plist and added it directly to the main project folder.
One thing I noticed is that the main Target of the storyboard is greyed out so I can't check it, though.
Any thoughts?
Just create new storyboard => right click on the project => New File => Choose story board ( name it as Launch or anything ). Storyboard name can be anything.
In case LaunchScreen not display then remove and add again.
I was able to get it linking by adding the file to Compile Sources.
It seems that if when bundling using react-native (I also used ignite as a starting boilerplate) it wouldn't let me link up the target, even manually -- so adding it to here did the trick and thus I was able to archive the project.
You need to add Launch Screen to the General > App Icons and Launch Screen
Whilst your Storyboard is open, ensure you've selected it as an Initial View Controller.
I have been trying to fix the compilation issues for the open source project https://github.com/gontovnik/DGRunkeeperSwitch with XCode6.4. I seem to have fixed all the issues but unsure of how to fix the following errors:
DGRunkeeperSwitch/DGRunkeeperSwitchExample/Base.lproj/LaunchScreen.storyboard: Launch screens may not use instances of IBUISceneExitPlaceholder.,
DGRunkeeperSwitch/DGRunkeeperSwitchExample/Base.lproj/LaunchScreen.storyboard: Launch screens may only have one top level object, which must be a UIView or a kind of UIViewController.
and
DGRunkeeperSwitch/DGRunkeeperSwitchExample/Base.lproj/LaunchScreen.storyboard: Launch screens may not use instances of IBUIStoryboardEntryPointIndicator.
Can someone please provide some pointers on how to go about fixing these errors?
Delete Your file LaunchScreen.StoryBoard, and then clear "LaunchScreen" in Lauch Screen File as photo. Done. Or you can add file LauchScreen.xib to your project, and then chose it in Launch Screen File as photo
"Requirements: Xcode 7-beta or higher." There's likely something new in the LaunchScreen.storyboard that trips up Xcode 6.
Since the launch screen is not a critical/essential part of the sample code, the easiest fix is to delete the existing launch screen, then create a new one in Xcode 6.
Update:
A launch screen is a splash screen that appears while your app launches. It doesn't have its own view controller, and is not the entry point for an app.
The example's navigation controller is the app's initial scene.
Update 2:
It's not that it's not fixable. Someone with the time and skill could rewrite it to remove the dependencies. Yet it does work as is with Xcode 7, so it's not really practical to fork it.
The error messages really are self-descriptive, but you may have introduced some of the problems by making some inadvertent/unintentional changes that broke it.
You could upgrade your tools and project to Xcode 7, find a different third-party component to replace this one, find someone who will fix it for you, or brush up on your skills and rewrite it yourself.
first you delete your launch screen and then delete UItests, you can find uitests in your project build settings under target files
I installed Xcode 6.3 which includes support for Swift 1.2. It turned up a ton of error messages, which are mostly casting issues.
I navigated to the storyboard, and cannot go back to any other .swift without the whole thing crashing. I have force quit, restarted, and even re-installed, and I still can't navigate away from the Main.storyboard file.
I have tried the suggestion described here to open storyboard as code, make some changes, revert those changes, save and try again, and still no luck.
Is something in my code breaking Xcode? Is anyone else experiencing this? I had used Xcode 6.3 beta successfully with the same codebase.
Update:
This has now been fixed in Xcode 6.3.1 released on the 21st of April 2015.
I gather from the apple developer forums that this is an #IBDesignable issue. Especially in projects that use custom fonts, additional xibs, etc.
I have somehow fixed my issue by removing all #IBDesignable from swift UIView class definitions. You can open your project directory with TextMate or other, search and remove all "#IBDesignable"
However I still think this is a MAJOR bug, that needs to be worked on.. so keep filing bug reports to Apple.
A temporary solution:
By opening a "New Window" (same project).
One for the code, one for the storyboard or reduce first, work freely with second window.
You can keep your #IBDesignables
EDIT : Bug fixed -> Update Xcode 6.3.1
Launching Xcode while holding shift fixed it for me.
(This suppresses Xcode's state restoration.)
Update: Xcode 6.3.1, released today, resolves this issue.
Update
Xcode 6.3.1
For me, everything works !
Temporary solution:
If you have currently opened Assistant Editor switch to another file using alt+click. You can keep your #IBDesignables.
Here's how I get around this strange bug:
Before launching Xcode, rename the storyboard file in finder so that Xcode won't find it (e.g. add the extension .temp)
Launch Xcode - works fine even if it hanged before since it cannot display the storyboard editor
Open a new window in Xcode
Rename the storyboard file to its original name
In the new window in Xcode - select the storyboard - Xcode does not hang
Minimize the new window and work as usual in the original window. Now you can select any file - even the storyboard - without Xcode hanging
One problem remains, though, at least for me. Every time I select a file or edit something, Xcode needs to recompile the storyboard. Haven't solved that one yet.
I can confirm this bug. I was stuck in storyboard and could do nothing to get out of it (couldn't even open the assistant). As a workaround, with the storyboard open, right-click the .storyboard file and select Open As - Source Code. This will switch your storyboard to code and you will be able to then switch to any file.
It is not a bug anymore since Apple fixed it in Xcode 6.3.1.
I have an existing working iPhone project inside XCode 4.2. I localized an image (which is used on a button) and I always see the old version of it inside the iPhone simulator. Where does it find that old version?
What I've done:
Window -> Organizer -> Project -> Delete Derived Data
Product -> Clean
Inside the IPhone simulator, I tried resetting it.
I tried deleting the project and recreating it (from SVN)
I deleted everything in Library->Developer->Xcode, Library->Delveoper->Application Support->iPhone simulator, Library->Developer->Application->Interface Builder 3.0
And I still see the old version... Is it compiled somewhere inside the interface builder with the button or something like that? Weird... really weird.
Note: I'm able to localize an image button if I add a new image, but using old existing image is always showing me the old version.
Solution :
My project contained images like ImageName#2x.png (for IPad I guess).
By also localizing those + clean + build + reset IPhone Sim settings, it worked. Go figure.
Also, when I add another language for the #2x images, I have to manually add the image in the other xx.lproj (where XX is the language code) with the finder because somehow XCode doesn't it.
Delete the App in iPhone Simulator (same way you would delete it on real iPhone) and try it again.
I have encountered a similar problem to this where the XIB file would not accept modifications. I eventually fixed by renaming the XIB file and then changes were accepted. Worth a try in your case I think.
I inserted a splash screen using default.png - set to one of the pictures on the desktop and now i am trying to use a view and open it that way however the last splash screen keeps appearing. Ive deleted all the code written for it and even the image. Not just removed reference but also deleted. I dont know where xcode finds the image to display it but the old image keeps appearing so i need to change it. I restarted xcode cleaned built no change. Let me know if im missing something.
In the project navigator, click on the application target. Click on the application target under Targets. Click on the Summary tab and look at the section "iPhone / iPod Deployment Info." There you can see the launch image. You can right-click to see the file being used in the Finder or you can delete it.
Update: Using XCode 4.1, I was seeing problem even after deleting it using above approach. I had to both clean the build and delete the app from device/simulator before rerunning it.