ngCordova HealthKit plugin ARC warning and app crash - xcode

I'm having trouble with a ngCordova plugin, HealthKit 0.3.3, when used with my Ionic Cordova app.
The app is just a skeleton, there's almost no code except to set up the app and to include $cordovaHealthKit in the contoller.
After building the app and loading it in Xcode, I see an ARC warning in XCode, pointing to the improper use of self in the plugin source code
[self.commandDelegate sendPluginResult:result callbackId:command.callbackId];
The warning is: ARC Retain Cycle: Capturing 'self' strongly in this block is likely to lead to a retain cycle
I have the HealthKit entitlement enabled in XCode, but when I run the app in XCode it crashes.
0x196717bd0 <+16>: ldp x10, x11, [x9, #16] WebThread (8): EXC_BAD_ACCESS (code=1, address=0x14b4fbeb8)
I'm unsure if I'm doing something wrong, or if this is an issue I should report at the HealthKit plugin Github page
Any thoughts gratefully received.
/plugins/com.telerik.plugins.healthkit/src/ios/com.telerik.plugins.healthkit/HealthKit.m

Related

Xamarin iOS only crash physical iPhone when you open an app

I'm facing a strange error. App only crashes on physical device. But iOS simulator does not. It working fine.
The strange thing is it crashes when you open an app and FinishedLaunching(UIApplication app, NSDictionary options) method does not call at all.
What possibilities might have this issue?
One of the third-party iOS library (nuget package) was configured to iOS-Simulator. not physical iOS.
After the package author released hot-fix, it resolved.
try to change the linker Behaviour use the SDK-Only
go to Xamarin.iOS solution select ios build choose linker behaviour and change it

Firebase Crashlytics xCode React Native issue in RNFirebaseCrashlytics

I have a problem during the configuration about the crashlytics integration.
I configured correctly the sdk into the app.
I insert firebase.crashlytics().crash(); for simulate the crash, but I receive this issue (below the image) and I don't see the crash in the firebase dashboard.
How can I solve the issue?
Thanks
Disconnect your xcode from your simulator / device before crashing the app. In this case the xcode debugger intercepts the crash and the report is not sent over to crashlytics

AudioKit on MacOS X - How remove the security popup alert

I'm working on a Mac app using AudioKit as audio framework.
AudioKit works fine with MacOSX, the same as iOS, no issue with that!
I needed to turn the Sanbox settings to On as it is required for sending app to Mac AppStore, so I had to change the SandBox entitlements to get it works (related post: Audiokit crashes when enabling sandbox in OS X).
The app works fine, except that I have this dirty security message during app launch saying « Use of the requested Audio Unit(s) require lower the security settings. Are you sure you want to proceed ».
I suppose this alert is caused by the line « com.apple.security.temporary-exception.audio-unit-host » in the entitlements file.
As my app is not a Audio Unit Host, I should be able to remove this line, but it might also require some changes in AudioKit framework. This is doable as AudioKit is open-source.
My problem is where should I look in the AudioKit framework to remove the Audio Unit Host related code ? Is this doable ? I hope so...
Any help is welcomed!!

Watchkit interfaceController for interfaceControllerID:random Not Found

Developing a new stand-alone WatchKit 5 app in Xcode 10.1
I am just cleaning up now that features added and bugs squashed, and the App runs fine with no crashes etc. However, I get two debugger alert when running on Sim or hardware:
2019-01-15 12:10:56.907672-0500
App WatchKit Extension[7263:261438]
[default] -[SPRemoteInterface _interfaceControllerWithID:]:2087:
ComF: interfaceController for interfaceControllerID:1C5F0002 not found
(clientIdentifier=(null))
Prior SO discussion of this error does not seem to apply since
Occurs before applicationDidFinishLaunching()
All scenes in storyboard have names, storyboardID's and correct modules (all inherit from Target). All except Static Notification view which does not allow for module entry
I am not using anything that need handling in didDeactivate like MMWormHole
The app is strictly Page-based Nav. There are no pushController calls.
I never explicitly call reloadRootControllersWithNames.
Looking at storyboard source shows all controllers have appropriate "customModule"
Never renamed WatchKit Target
Trying to check out the calling arguments inside watchkit (po $arg1 etc.) fails with an $arg1 not declared
WatchKit`-[SPRemoteInterface _interfaceControllerWithID:]:
-> 0x225977 <+0>: pushl %ebp
0x225978 <+1>: movl %esp, %ebp
0x22597a <+3>: pushl %ebx
So, this issue occurs in WatchKit code long before my code starts running, but it could be a problem with loading the storyboard, in which case I should try to find and fix it. Otherwise it could be another Xcode bug. The prior Radar'd reports seem to be different circumstances. Is this another harmless Xcode report?

Not able to turn on HealthKit capability

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..

Resources