Not able to turn on HealthKit capability - xcode

I'm trying to experiment with HealthKit on both iOS 9 and WatchOs 2.0, but when I try to turn on HealthKit in the project's Capabilities page, I get the following error message:
Link HealthKit.framework
The framework 'HealthKit.framework' was not found in the SDK for this
target.
The same happens for both the iOS App and the WatchKit App Extension.
I tried to manually find the framework in Xcode-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library, but it's not there either.
I'm using XCode 7.0 Beta 4.
Any tips?
Thanks!

So, I excluded Xcode and re-downloaded it.
HealthKit was suddenly there again.
Go figures..

Related

NativeScript Playground App on iOS 14.0 (18A373) crash directly after start

I have installed the NativeScript Playground App on my iPhone XR with iOS 14.0 (18A373) and the app directly crash after start. So I can not scan the QR code from play.nativescript.com
This seems to be a common problem with running Nativescript apps on iPhones with iOS 14.
My app, which has been fine for the past year, suddenly failed and I'm now trying to find a solution as rebuilding with XCode 12 also fails...
https://github.com/NativeScript/NativeScript/issues/8867
https://github.com/NativeScript/NativeScript/issues/8916
Follow up:
I got it working in Xcode 12 though not entirely clear how... basically I did this:
installed "tns-ios": "6.5.2"
tns platform remove ios, tns platform add ios
tns build ios --release
Went to XCode and selected Product > Archive (which rebuilds it)
This build succeeds and when deployed to the App Store it worked in FlightTest.
This fix is to update tns-ios to 6.5.2 but you also have to make a change to your Podfile and build.xcconfig. I wrote a tutorial on the steps I took to fix the issue: https://timleland.com/how-to-fix-nativescript-issue-with-ios14-and-xcode-12/
Playground and Preview Updates are now available with iOS 14 compliance:
https://twitter.com/NativeScript/status/1325994280003891200
NativeScript Playground v1.9.0
NativeScript Preview 1.31.0

WatchKit Error with "no symbols for paired Apple watch" watchOS 3.1

im trying do develop my app on my watchos3.1 and i getting every time this error.
no symbols for paired Apple watch
Xcode doesn't download the latest symbols for my watchOS 3.1. In my folde
Library->Developer->Xcode->watchOS DeviceSupport->
i only find a file with "watch1,2 3.0"
how can i download the file with 3.1 ?
Just ran into this issue with Xcode 9 and watchOS 4. It turned out that I was not logged in anymore to my Apple ID in Xcode. Go to Xcode > Preferences > Accounts and log into your account. Then disconnect and reconnect the iPhone with the paired watch and Xcode should now be able to download the symbol files.
In my case this happened because there was a new license agreement pending in my account. After I had accepted the new agreement, Xcode was able to download necessary symbols
I had a similar problem and ended up deleting the app from my phone and watch, closing Xcode, and trying to install it again. After a few attempts this ended up working. I would also double check that you're running the latest version of XCode. Hope you get it resolved!
I managed to get my watch app working by installing the app to my phone first (without the watch component), and then installing the watchOS app directly from my phone's Watch app.
This is a bit of a work-around, but I too could not find the 3.1 file anywhere.

xcode5 simulator app crashes keychain-access-groups not allowed

my app crashes in the simulator.
Just installed OSX Mavericks with XCode 5.
Developed the app using Corona SDK.
I deleted my old provisioning profiles and created new ones.
my Bundle ID is something like com.company.appname
I get the following error message in the console log from the simulator:
killed testapp[pid xxxx] because its use of the keychain-access-groups entitlement is not allowed (error code -67030)
I already deleted all old project screenshots / files. Don't know what to do.
The compiled app runs fine on my iphone 3gs with iOS 6.1 though.
any help highly appreciated
roman
Corona's engineering team is looking into this. Please add your information to this post on the Corona SDK Forums
http://forums.coronalabs.com/topic/40706-app-crashes-in-xcode-simulator-ios-7-sdk/page-2

Upgrade to iOS 5 caused my app to stop being debugged

I have upgraded my iphone to iOS5 to test my application behavior on iOS5
After verified it has issues, i have downgraded my device to iOS 4.3.5
since than I am trying to debug my application using XCode and get the following error:
Error starting executable
No provisioned iOS device is connected.
Does anyone know how to fix this issue - so i can debug my application again?
Edit:
Also another relevant piece of info when I use the configuration drop down selector i get
Under Active Executable - "no device available"
I have managed to fix the issue:
I took a look at the following similar question :
Xcode - No provisioned iOS device is connected
So i wanted to see what i see in the snapshot that the user had : and there it was...
I didn't see any information like he did, all i saw was
A button called "enable for debugging" if i'm not mistaken.
Clicked on it, and Worked like a charm.... :)
You could try deleting the provisioning profile from the device via the xcode organizer window, or within the Settings App on the device. Then add back your current prov profile from the iOS provisioning portal.
Also, make sure you have the debugging symbols/SDKs for that iOS under
/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/[insert ios version folder here]
And:
/Developer/Platforms/iPhoneOS.platform/DeviceSupport/[insert ios version folder here]

Can't run on device after installing iOS 4.2 and the 4.2 SDK

I installed iOS 4.2 on my 2nd-generation iPod Touch last week. I tried running my application on the device through Xcode, but it didn't work (because Xcode didn't yet support iOS 4). To solve that, I installed Xcode 3.2.5 and the iOS SDK 4.2. Now I can get the app to run in the iPhone/iPad Simulator just fine.
However, I can no longer select "Device" from the menu at the top of the screen. It's a choice, but when I try to click on it, it never actually gets a check mark.
Because of this, I can no longer run the app on my iPod. The other (related) problem is that I can't choose "Build and Archive" from the Build menu anymore because the target is not a device.
Why is this happening? Do I need to change some settings in my project, or something with my device itself?
EDIT: Upon closer investigation, it appears that I can't select anything but the iPhone Simulator 4.0. Maybe there's something wrong with the project file.
Check that the base SDK is set to Latest iOS (currently set to iOS 4.2) for your Xcode project and your target's product, then perform a rebuild and see if your iPod is recognized.
Also try visiting the Xcode Organizer and see if it's asking for anything from your iPod. Typically Xcode will want to collect some data from devices whose OS receive updates, so it can update itself and install your apps on the updated OS properly.

Resources