If starting a new project in Xcode 4.6 and when adding a button in a ViewController it is always followed by constraints. I have found that this project does not run on the iPhone 5 simulator (iOS5). On iPhone 6 simulator it runs ok. It is the constraints causing the crash. Removing the button and it runs ok on both 5 and 6 simulator.
If I use an older Xcode (before the constraints) to start the project and continue with Xcode 4.6 the constraint are gone.
But is there a way to disable the constraints from start in Xcode 4.6 to make a project run also with iOS5?
you just need to go file inspector tab where will find the autolayout , then uncheck this.
Yeah that's called Auto Layout and was introduced in iOS 6.0 (and like any feature that's unsupported in a previous version of iOS, it crashes).
To disable Auto Layout on your nib file, see this blog article.
Related
As I have developed the iOS application using Xcode 7.3.
When reviewing the AutoLayout constraint on the device which having iOS 10 using Xcode 7.3 it properly display it but when using the Xcode 8 and then reviewing on the device then it does not show properly.
So my question if I am deploy the application on the AppStore using Xcode 7.3, so there is any chance that the AutoLayout constraint do not show properly in iOS 10.
Any help is much appreciated.
I am having the same issues in one of my iOS application as the constraint works in Xcode 7.x but not in Xcode 8, so I have found some work around for resolve it. Please find the below steps.
1) Open your storyboard in Xcode 8, then it popup regarding choose an initial device view, please select one of the option and then click on Choose Device. Please find the below GIF representation for same.
2) When you complete your changes, select the storyboard, go to File Inspector, on Interface Builder Document section, select the Opens In field and apply the Xcode 7.x. After that it popup regarding save so please select "Save and Close" option when it is prompted. Please find the below GIF representation for same.
3) Close the Xcode and then open the application.
Your storyboard changes will be saved, and your storyboard will function as it did on Xcode 7.x.
Hope it works for you!!!
The build given by Xcode 7.3 will not affect for constraint issue on iOS10.
In xcode, I tried to add a tap gesture to my app and when I built it, it started a problem with Xcode. It goes from building, 'running on iPhone 6.1 simulator' to 'finished running on iPhone 6.1 simulator'.
If the simulator is closed, it starts up with a black screen and you cannot click the home button etc. If open, nothing happens, the app doesn't install but the simulator doesn't crash.
I have tried the armv6 architecture 'fix' but that didn't work. I have also cleaned the project and project data. I have reset the simulator multiple times as well.
If I add the old files to my new project, it works up to a point (I copy and paste old files into new) but then the same happens.
Thanks for your help in advance!
NOTE:
New blank projects build and run fine.
EDIT: It still didn't work after undoing my previous actions, and the simulator is responding according to Finder, although the screen stays black
–––––––––––––––––––––––––––––––––––––––––
UPDATE
I had a folder named 'resources' in my application, imported as a reference which, following links from the thread #arthan.v supplied me with fixed the problem. What I did was rename the folder to files and reimport it.
Thank you so much, I spent 2 days trying to fix it before now!
Click the Center Button in View on your right hand side of Xcode.
In your Bottom bar, you'll see error: failed to attach to process ID 0.
Check these error: failed to attach to process ID 0 and Xcode compiles my App, but can't run it in the simulator
This sometimes gets fixed by these steps:
iOS Simulator > Reset Content and Settings ... > Reset
Xcode > Build and Run
I experienced the same issue after I had re-organized some code and renamed the workspace and project. Eventually realized there was an old version of my test app on the simulator's homescreen. I delete that and then everything was building fine again.
You might need to add the device to the provisioning profile. I experienced this on Xcode 6 and a real device.
I was using using Xcode 4.5 to create an iPad application yesterday and completed it. But today when I took that same Xcode project and tried to run it on an older machine running Xcode 4.2, it is giving me an error about IBNSLayoutConstraint. Which i guess was due to the new features that were included in the new Xcode 4.5. So I was thinking is there a way to open project from new Xcode in the older version without having to install a new Xcode and OSX.
I am not sure if this question is asked here yet or not, but i tried to find a solution but no luck in that either.
PS. I already know that the best solution is to not opent those projects in older version but that is not what i am looking for.
There is an option in the inspector window when you select the xib file that will not use the constrains under "Show file the inspector" in the inspector called "Use autolayout".
Here is a screen shot of it.
uncheck autolayout feature from each xib file the open your project on xcode4.2, it works on my case, as autolayout is only available in iOS6
I'm developing a new app but I've a little issue with Interface Builder...
I've installed Xcode 3.2.3 and iPhone SDK 4.0 GM.
When I create a new Tab Bar Application project in Xcode, opening the MainWindow.xib file in IB, the Tab Bar Controller won't open... I tried reclicking it but nothing!
I also uninstalled and reinstalled all developer tools but without any results...
Finally if I try to build and run the project in the simulator, the tab bar controller shows normally!
Can anyone help me? :)
It sounds like something similar to what I have experienced with my projects and the new sdk. Some of my IB files such as ones that contain UIViews when double clicking on them they refuse to open.
I haven't had to reinstall or nothing usually quitting IB and xcode and restarting helps I can't remember if I have done anything else to fix it. It may be an issue with the new 3.2.3 xcode as I don't recall having anything like this happen in my 3.2.2 build.
If it becomes a large problem for you have you considered removing the tab bar and rebuilding it? Just a thought. It may be troublesome to do so but if it fixes it and allows you to continue coding your project it would be worth it.
You said in your question that you're running iPhone SDK 3.2.3 with iOS4 GM. You should update your SDK, as the SDK is now at version 4.0 officially.
Otherwise, it sounds like your Xcode installation is somehow corrupted in some way. You may need a complete reinstall.
I have a project that has existed for quite a while, and I recently upgraded it to 4.0. Though it now throws out a bunch of warnings and an error similar to this:
{some xib setting} is not supported on iPhone OS versions prior to 3.0.
I have the Base SDK set to 4.0, and the deployment target set to 3.1, so why does XCode think it needs to care about "iPhone OS version prior to 3.0"? Is there a build setting I have set wrong that I'm not finding here?
Here is a screenshot of a handful of the warnings.
Xcode Errors http://beautifulpixel.com/assets/Info.plist_-_LatestChatty2-20100624-152508.jpg
Ah... eventually I deduced that if you click the waring icon in the lower right corner of the outline window of the opened xib, it brings up a window where you can set the deployment target for that xib. Changing it from 2.1 to 3.1 fixed my issues.