Is the Xcode 6 UIWebView not compatible with iOS 7.1 - ios

I am very new to iOS programing and am right now using Swift to do coding with XCode.
I want to use UIWebView on my app. I created a webview and used the following code to run it.
var url = NSURL(string:"http://some-website.special.page.com/");
var req = NSURLRequest(URL:url);
webView.loadRequest(req);
This works perfectly on a ioS8 simulator and phone but when i try to execute/deploy the same on a simulator/iPhone with 7.1 the app crash!
All i get is the following error on XCode.
dyld`dyld_fatal_error:
0x8fe460b4: int3
0x8fe460b5: nop
Going through stack overflow older post i stumbled upon this post Which is the cause for dyld`dyld_fatal_error, a incompatible api on iOS?
which also talks about this error. But in my case i have not used any additional framework. I think it should be compatability issue with the webkit. Not sure if i am thinking on the right direction. Whats the work around on this as i want my app to be backward compatible as well as use ios8 features? Appreciate any help.

Similar problem happens on OS X too.
If I use 10.9 SDK but have the code compiled using Xcode 6 beta 2 on Yosemite, the binary runs w/o problem on Yosemite, but it crashed on 10.9; if the exact same code was compiled in Xcode 6 beta 2 on a 10.9.3 machine, it runs without problem on 10.9 but got random crashes on Yosemite.
I guess there's either a bug regarding the system or SDK in Xcode 6 beta, but can't be sure.
(Sorry I was mean to use the comment, but my reputation wasn't > 50.)

Related

Is it safe to upgrade XCode 4.6.3 to Xcode 7?

I have developed a Universal App that works on both an iPad running iOS 9.3.5 & an iPhone running iOS 6.1.4, using two different Storyboards.
I realise that I need to upgrade in order to be able to distribute my App on the App Store.
Can I run Xcode 7 on OS X Lion? And, more importantly, will my Objective-C code still work in Xcode 7?
The code I am using is very basic. I am essentially using a UINavigationController to present data from an SQLite database.
I am not using any animation, location services or camera based classes.
At the moment, I have set my deployment target as 6.1.
I am using 2 third party frameworks: SSZipArchive & Reachability
Can anyone give me some reassurance, before I assign a month's worth of work to the scrap heap?
It is really hard to tell, since it means jumping 3 versions (!) ahead. Anyway, I wholeheartedly recommend you to set git in your project, to make sure you can always revert if something goes wrong. BTW- I would recommend updating to Xcode 8, the latest version of Xcode.
Following are the answers to your queries :
Which version of Xcode 7, you will be using? You will have to upgrade your OS too to run Xcode 7 as it runs on OS X 10.10.4
Your code will probably work on Xcode 7, but you might have to tweak a few things. But you will have a lot of online help to fix these issues.
From Xcode 7s Release notes:
Xcode 7 requires a Mac running OS X 10.10.4
In general, you can copy /Applications/Xcode.app to /Applications/Xcode_4_6_3.app and than update (or maybe better install) Xcode 8beside it, so you can always use your legacy version side-by-side.
Without knowing your code nobody can tell if it needs modifications to build under Xcode7. As the step from Xcode 4 to Xcode 7 is big, plus you want to build for the App Store and therefor have to target iOS 10, I assume you will have to tweak your code due to deprecations and such.
You need to build with Xcode8 to archive this btw.
If you were working with Storyboard, I would also expect issues as Storyboard has been developed a lot in between.
Will my MacBook Pro OSX Lion, handle the XCode 4.6.3 to Xcode 7
Absolutely not. Xcode 7 requires a much later system version than Lion.
In general what I have done in your situation is to install the required system and Xcode onto an external drive or a partition on the internal drive, and boot from that. This allows me to experiment and see whether the transition is going to work.
There is no need, therefore, to guess — which is what it appears you are trying to do.

Xcode 7 is out. What about submission with Xcode 6 and swift 1.2?

I have an application in review and it has been implemented with swift 1.2 and Xcode 6.x. In case Apple rejects my build I've to do the required fixes and submit it again. I've started working on the port to swift 2 but some of the libraries that I use have not been updated or they have dropped support for iOS 7 updating to swift 2.0... bad situation. That said, probably it takes some days (hopefully) to get back to a completely working project.
1) in the meanwhile can I still compile my current code with Xcode 6 swift/1.2 ? does Apple accept this kind of submission or they requires a build created with Xcode 7.
2) Can I avoid switching to swift 2.0 and use anyway XCode 7?
You can still use Xcode 6 and Swift 1.2. Apple will eventually require the newer tools but the now older one is still fine.
Of course you can't take advantage of any iOS 9 features this way but at least make sure your app works under iOS 9.

Downgrade Xcode SDK for app submission

I submitted an update to the AppStore last week with the latest SDK - Xcode 5.1.
However, I'm facing unexpected UI issues on iPhone 5S which I didn't previously find while testing on the iOS 64-bit simulator.
This seems clearly to be an SDK issue.
I'm thinking the quickest solution now would be to submit another update with the older Xcode version 5.0.2.
Is this a good idea?
Please suggest some pros & cons.
I found that the issue was because of the UIButton defined weak, which failed to get allocated on 64-bit devices for the app update submitted from Xcode 5.1
Interestingly, UIViews and UILabels declared in a similar way did NOT fail to get memory allocations.
Looking back at my original question, it was probably best to fix the issues under the latest SDK rather than reverting to an older version.

can I upgrade/make app for ios7 using xcode 4.2?

I have an existing app that need to be made compatible to ios7. I am new to ios app development. I have following things:
1. Macbook with MAC OS 10.6.8
2. X code - 4.2
is it possible to recompile the existing app using above to make it compatible for ios7?
(I know i need atleast MAC OS 10.8 for xcode5)
A little detailed explanation is highly appreciable as I am still figuring out how it works.
If not what all I would need to achieve same? If yes, how?
Its must to have xcode 5 or 5.1 to make app ios7 compatible.
Nope. iOS7 requires Xcode 5+ which requires mavericks. You can upgrade for free to mavericks and get Xcode.
Just open the App Store and upgrade to mavericks (5.3 GB) and then get Xcode 5.1
iOS7 developemnt only available with xcode5 and xcode5 is support minimum os version is MAC OS10.8 so first off all you have to upgrade os then xcode also then you can do your task.
From 1st Feb every app must be build in Xcode 5 and above as per apple declaration
I don't know about your existing app, but iOS 7 can run iOS 6 app, it shouldn't be an issue to just let your old app runs.
Of course, you will have to have xCode 5 in order to run and debug on iOS 7 device and simulator.

OpenGL ES Application Template Project Crashes in iOS Simulator

I am new to OpenGL ES 2.0.
I create a new project from XCode "OpenGLES Application Template", and try to run it, but it crashes in the iOS Simulator. When I debug it, I can see it draws the first cube successfully but then it goes somewhere which I can't see, and application crashes. I can not see any error reported in the console.
Some info:
My Xcode version is 3.2.6,
iOS Simulator is 4.3,
Running on Mac OSx 10.6.8,
iOS 4.3 SDK.
Thanks in advance :)
To answer my own question:
I solved it, the problem did not have anything to do with OpenGLES2.0 as I originally thought.
Apparently my iOS Simulator 4.3 has some issues, because when I run it on iOS Simulator 4.1 it works flawlessly.
Thanks.
P.S. I don't know, if I should remove this question and answer or leave it here, because "title" of question is misleading, and has emphasis on OpenGLES when as it turned out, problem did not have anything to do with it.

Resources