Xcode 6 with iOS 8 SDK can't run UI Automation in Instruments - objective-c

I'm trying to capture UI Automation script with a sample project. I use Xcode 6 on OS X 10.9.3 and iOS 8 SDK, trying to capture script on iOS 8 simulator, but getting following error:
Script capture is not available on this device
SDK is still in beta, so maybe that's a common bug there. Did anyone else face this bug? Or maybe there's a workaround available?
When I try to do the same things with Xcode 5 / iOS SDK 7.1 everything goes fine.

You should enable UI Automation in the device settings: Settings -> Developer -> Enable UI Automation.
It works for me.

It's a known issue to apple and that they need to fix this which surely they will...
Check this out... Bug has been filed
http://openradar.appspot.com/radar?id=6099734162833408

Related

Crash while running old project on iOS 11

I have code which was initially developed on Xcode 3.2. It was then later update to become compatible with ios 7. But now when I run that code with Xcode 9 GM, it run alright on any iOS 10.x device.
But crash on iOS 11 device with following error detail:
Plus: When i open this project with Xcode 9 GM, Xcode doesn't show iPhone X simulator.
I think you have some old static libraries. iOS 11 supports only 64-bit libraries.
And also you can check Deployment target of your app. Maybe it's too low (I think ios7 deployment target is not supported now).
I think your app is running on 32-bit
As a reminder, new iOS apps and updates submitted to the App Store must support 64-bit. Support for 32-bit apps is not available in iOS 11 and all 32-bit apps previously installed on a user’s device will not launch
64-bit Apps on iOS 11
I don't know what is you exact scenario but possibilities of crash with payload could be following. Hope anyone of below all will work for you.
Please Try Following.
Disable "Enable guard Malloc" from diagnostics.
OR
You Can do Following:
delete all certificates from keychain.
Quit xcode
Delete xcode derivedData and delete all provison profiles
Restart mechine
Download latest certifcates and provison profile from Member Center
Click on certifcate i will install in keychain access.your key chain access should like this
OR
if you are using custom framworks, you need to put it inside the Embedded Binaries section located in the Xcode project under the tab Target / General.

MapKit.framework linking error

Strange error happening on Xcode 8 with iOS 10. An app uses MapKit. I was working with simulator and all was fine. And I wanted to run on a device.
And I was getting these errors. After that, I restarted my Mac, and now I'm unable to run even on simulator.
OSX: El Capitan,
Xcode 8,
iOS 10
Check your Project's Capabilities and turn Map - ON.
Check Your Build Phases if you have MapKit framework imported.
If you already have the framework try to remove and re add .
Good luck :)

unable to connect ios 9.1 device to xcode 7.1

I am trying to run application in a device with iOS 9.1 from xcode 7.1. xcode is keep crashing. I am unable to install the application in any ios 9.1 devices. I have tried 3 different devices and getting the same problem. My code is in objective-c.
I have uninstalled the xcode and then installed xcode 7.2 again. It solved my issue.
I think you should do something for fix it, maybe it's just some stupid errors from xcode.
Try to clean then build again.
Add a devices for development then test again.
Report to Apple.
Check your iOS Target Deployment first.
Also try following steps
Also try reinstalling Xcode 7 and while installing close Xcode.
Check in Xcode Preferences whether Simulator for iOS9 is installed or not.
also check whether your itunes open when plugin device.

How to test my app on ios 7 using Xcode 6 simulator

I'm trying to test my app with ios7 using Xcode 6's simulator but I can't find the option to change it. Currently it only loads ios8 while my deployment target is set to 7.
Also according to this message from Apple:
Starting February 1, 2015, new iOS apps uploaded to the App Store must include 64-bit support and be built with the iOS 8 SDK, included in Xcode 6 or later. To enable 64-bit in your project, we recommend using the default Xcode build setting of “Standard architectures” to build a single binary with both 32-bit and 64-bit code.
Does this mean that new apps cannot run on ios7 anymore?
Thank you for your help.
First, Change Deployment Target to 7.You can change Deployment target from target under Deployment Info.
Go to Xcode Preferences, Select Downloads tab and download iOS7 Simulator.
Now go to Xcode, you can find iOS7 Simulator on target device list, if not than quit and restart Xcode.
Hope it will help.
The deployment target is the minimum version of iOS that your application will be expected to run on. It effects how your app is BUILT and not where you run it. You need to choose an iOS 7 device from the run destinations menu and then do a Build&Run to build, install, and run the app on the iOS 7 device.
If you don't have an iOS 7 simulator device in the run destinations menu, go download the iOS 7 runtime from Xcode -> Preferences -> Downloads
Yes you can, go to xcode(7) preferences>select Components here you can download Simulater and Documents also.

Compatibility of Xcode 5 with Xcode 6

Apple has now announced Xcode 6 (and iOS 8). I currently have Mavericks on my Mac (and am not planning to upgrade to Yosemite yet), and am wondering if I can download the Xcode 6 dev preview, while still maintaining my current version of Xcode 5. This is so that I can use the new Xcode 6 features, while still being able to work on, and upload, my current applications. Is that possible?
Also, if I update my phone to iOS 8 Beta, will I be able to run apps from Xcode 5, or only Xcode 6?
Answers would be hugely appreciated! Thanks :)
Even I use Mavericks, I installed Xcode 6. In order to be sure about my maintenance projects, I've also downloaded Xcode5.1.1 from Apple developer portal, copied it into my Desktop, renamed it as XCode 5.1.1 and then moved it to my applications folder.
I have both versions at the moment without any issues and can also select the version of Xcode while opening an existing Xcode project by using open with menu feature.
I hope this helps...
Xcode 6 Beta Release Notes
Xcode 6 Beta requires a Mac running OS X version 10.9.3 (or later) or 10.10.
I think its possible that you can do all things you was able to do with Xcode 5 but I will tell you when my xcode 6 download is finished.
You may install XCode 6 Beta on OS X 10.9.3, and I think that you'll need XCode 6 in order to run iOS8 apps.
One thing that you didn't ask, but that you should keep in mind (as you mentioned your phone):
Devices updated to iOS 8 beta can not be restored to earlier versions
of iOS.
i've installed Xcode6 in Mavericks and iOS simulator crash with message : Unable to boot the iOS Simulator. :-(
You can download the preview of Xcode 6 and use your existing installed Xcode 5 side by side without affecting anything you're doing. Just make sure if you click on a project file that you open it in the correct version of Xcode.
Download xcode dmg file from Apple's developer site. Install it in a different location other than the Applications folder. There you go !!