iOS 8 file upload crashing UIWebView - ios

I have an iOS application which utilizes some cordova plugins and uses the standard UIWebView wrapper.
With iOS 8, I go to upload an image in a UIWebView, the app crashes. Xcode give an "App terminated due to memory error" and not much else. This issue was also occurring in Safari initially, but Apple patched that up in iOS 8.0.1.
A couple weeks ago, I found this solution which fixed the crash issue for me. Now, however, iOS 8.1 is out and the issue is happening again. I've tried all sorts of combinations of deployment targets and base SDK settings in my CordovaLib.xcodeproj settings and my main project's build setttings, but I'm not having much luck.
I'm testing this on an iPhone 6.

Related

Build w/ iOS 9.x SDK, debug on ios 10.x device?

I have an app which, due to some serious compatibility issues, I'm still building with the iOS 9.x SDK. Making modifications to get it to compile with the 10.x SDK would be a large undertaking. So, I've just been using Xcode 7.
The problem is that because of this, I can't effectively debug on iOS 10.x devices, as (of course) XCode 7 doesn't recognize iOS 10 devices.
Is there any way to get the best of both worlds? E.g. run XCode 8, debug on iOS 10.x devices, but build using the iOS 9.x SDK?
Discovered this answer which does the trick. I successfully used this method, built using the iOS 9 SDK using XCode 8, and the resulting binary was accepted into the App Store. One small note, I had to use Application Loader to upload the binary to iTunes Connect, as I was getting unexplained errors when trying to upload directly from the XCode Organizer. Not sure whether that had anything to do with the older SDK, but just in case, figured I'd mention it.

Wikitude SDK for iOS crashing on iOS 9 Device

I want to code an app with augmented reality support by Wikitude. For that I use the native SDK for iOS from Wikitude. Setup and everything works, like it is described on their website/documentation.
When I run the app from Xcode on my iDevice, the app launches and crashes immediately with the following error:
dyld: Library not loaded: #rpath/libswiftSecurity.dylib
Referenced from:/private/var/mobile/Containers/Bundle/Application/some-number/App.app/Frameworks/WikitudeNativeSDK.framework/WikitudeNativeSDK
Reason: image not found
I have googled my way through the web now, still no solution found about how to fix this problem/bug/whateverthismightbe. I cleaned the whole project, removed the DerivedData-Files, restarted Xcode, nothing works.
My setup is: OS X 10.11, Xcode 7.0.1, iOS 9.0.2
Maybe someone had this problem too and solved it, would be nice to know!
Thanks in advice.

Testflight does not allow iOS 7.1 app compiled with iOS 8.1 SDK to install on iOS 7.1.2 iPhone

When I'm in the Testflight web app I see some apps I've built earlier that support iOS 6 and up, but the app I'm working on now does not show up. It's an iPhone 4 running iOS 7.1.2 and testers report the same issue. My device shows also like this version under "devices" and I already tried to reconnect the device, to no avail.
The minimum OS as displayed in Testflight when I go to incompatible builds is listed as iOS 7.1. At this point I'm a bit baffled about what to do. At this point I'm a bit baffled. Already tried to check all build settings and re-uploading the build to Testflight.
Twice I had the same error. Third time I've uploaded the same code with a different build number but with the same settings it worked. I suspect a glitch in the Matrix, a temporary problem on the side of Testflight

Unable to profile using Instruments on iPad 1 using XCode 5

I have an application built against iOS 7, but targeted for iOS 5.1 since I only have an iPad 1 available for testing. It's an all native library, with very minimal iOS dependencies. I am able to run the app on my iPad just fine, but when I try to Profile it, XCode 5 immediately changes the status to 'Finished running on iPad', and the Instruments window shows a warning saying 'This device does not support this instrument'. I see this behavior regardless of which instrument I choose from the Instruments panel.
I have tried other suggestions from similar issues posted on Stackoverflow such as
1. Cleaning my app and rebuilding
2. Restarting XCode
3. Deleting my app from the device
4. Changing the deployment target from 'iPhone/iPad' to just 'iPhone'
None of these have helped me get over this problem. Is there something fundamentally not supported in the configuration that I am trying to run ? Since the app runs correctly on the iPad, this seems like just a problem with Instruments compatibility, so I welcome any comments / suggestions on resolving this.
Thanks.

Xcode, Simulator: App crashes on launch on older version of Simulator

I'm having some trouble supporting older versions of iOS. I first noticed this when a buddy of mine was using my app and it crashed. He's running iOS 5 and I'm running iOS 6. I'm building with base SDK 6.0 and I've tried changing the deployment target, the architectures, and pretty much everything I could find and think of. Nothing works and when building on iOS 5 simulator, the app crashes at launch.
I need to fix this so my older version users who download my app aren't experiencing crashes.
Are you using autolayout on any of your xib files? By default you would be. If you still are, switch it off.

Resources