Not able to run once renaming is done in Xcode 6 - ios

I renamed a project in Xcode 6.3 and I found the Active Schema in the tool bar has changed to settings kind of Icon and I can't run the project in simulator as well as in device.
How can I get rid of this. Please clarify..

There is a bug in xcode 6.3 which leads to unexpected behaviour when you rename a project.
Read the following post to rename your project in case you dont have a backup.
Xcode 6.3 is crashing on Project Rename

Related

AppCode no product for target

I am trying to run Swift iOS app in iPad simulator in AppCode. App is successfully built, but there is an error
Error running ios-app: No product for target 'ios-app'
I am quite green in iOS development and I am trying to switch from XCode to AppCode since I am more familiar with it.
I am using latest AppCode (3.1.7), everything works great in XCode.
Thanks for responses :)
I ran into the same problem - I wasn't able to run my XCTest unit tests in AppCode any more although they were running perfectly in XCode.
My error message was "No product for target ..."
I was able to get them running again by switching to the latest AppCode 3.2 build (Tascalate).
You can get this one by opening the IDE Preferences, then go to Appearence & Behavior > System Settings > Updates
There you can switch to the Early Access Program to check for updates.
Hope this solves your issue, too.
Edit: Since Julian above asked an important question about the XCode version... in my case I was using AppCode 3.1.7 and XCode 7 beta 4. The switch to AppCode 3.2 EAP - as already mentioned above - solved the issue.
I have delete the .idea folder and restart Appcode, it's work

When I clean Xcode DerivedData I can't run my app in iOS Simulator

In Xcode 6.0.1,I have to delete all my data in DerivedData,then I run my app,it builds successfully but I can't run it on the iOS Simulator iPhone 5.
Xcode warning :
Invalid or missing Program/ProgramArguments
Can anyone help me ?
I was facing this issue when i migrated my project from xcode 6.4 to xcode 7 beta 6.
To solve this issue, you have to :
From top menu options GOTO,
xcode -> Preferences (cmd + ,) -> Locations
select the command line tool to your current version.
Now run your app, it should work fine.
One of the following worked for me:
cleaning project (Product/Clean)
cleaning derived data (Window/Projects)
reopening XCode and the project
removing the scheme and re-creating it (Product/Scheme/Manage Schemes)
changing location of Derived Data (XCode/Preferences/Locations, changing Derived Data to: Relative)
I had the same issue and noticed that Xcode created few build directories in different places all of a sudden.
So i went to build setting and revisited all build locations, quit Xcode, deleted all build locations directories, started XCode, cleaned build, revisited again and this fixed the issue.
Not sure what caused it at the 1st place though:)

Xcode 6 Beta - Apple Mach-O Linker error

After updating to the recently released beta 6 of Xcode 6, my swift project fails to build due to the following errors.
Looking at previous questions on this issue, propose checking the build architecture is set to support arm which mine project includes already (arm64, armv7s, armv7).
First, make sure you have the most recent beta installed. Afterwards delete your DerivedData folder ( ~/Library/Developer/Xcode/DerivedData ). This should allow you to compile again in the latest beta.
Edit: This appears to hold true for the newest beta version of the Xcode as well
From what I hear, so far Xcode 6 Beta 6 is broken. You should uninstall and rollback to Beta 5.
Edit:
Apparently, a new version is already out, just reinstall beta 6
http://9to5mac.com/2014/08/18/apple-re-releases-xcode-6-beta-6-solves-issues-discovered-by-developers-in-new-build/
Make sure you install the latest Xcode Beta 6 version. If you check Xcode->About Xcode, you should see: Version 6.0 (6A280e)
I had the same problem. I reinstalled Xcode. then it fixed the problem.
In my case it happened because of deleting a imported framework(move to trash) which is inside my project navigator. I think Xcode delete the whole framework when we delete(move to trash) imported framework from our project navigator.
Make sure you haven't done any unnecessary imports example importing an .h file when you needed .m

Xcode 5.1 Building Wrong TestFlight SDK

Since the latest Xcode 5.1 and adding TestFlight 3.0 to my project, Xcode keeps building the project with the old 2.02 version of TestFlight.
Clean builds don't seem to help. Where else could it be picking this up from ?
I had this issue with a stale search path reference hanging around (ie deleting the folder from the project did not remove the LIBRARY_SEARCH_PATHS entry). So there were two ways to find libTestFlight.a and it was using the first, wrong, one. Search for LIBRARY_SEARCH_PATHS in your Build Settings, and if there's an unwanted old entry still there, get rid of it!

Xcode 4.4 turned my iOS project into a Mac OS X project! How can I fix this?

I've opened an iOS project - with Xcode 4.4.1 - that I hadn't opened for 2 months (ie with Xcode 4.3). First, Xcode was crashing constantly right after displaying the project navigator saying something like "Failed to associate working tree".
I tried to fix it by removing xcuserdata files and the project.xcworkspace directory as well.
Now, Xcode opens without crashing but in the scheme view, it is shown as a Mac OS X project whereas both the project and the target are correctly set to a "Latest iOS" base SDK.
How can I fix that without having to recreate a project and copy all my source files?
EDIT: i'm using Git with a GitHub remote.
make a new scheme for ios by clicking on the current scheme then "new scheme"
Roll back using version control. If you post which version control system you are using, somebody will be able to give you the specific command to use.
I had a similar problem with all my Xcode projects. Every iOS project got turned into an OS X project without me changing any settings. A reinstallation of Xcode fixed it for me.
Just set your Root SDK to iOS in your target's Build Settings
SDKROOT = iphoneos

Resources