Open mn-martin opened 7 years ago
... unfortunately with no success
platform :ios, '8.0'
use_frameworks!
pod 'KontaktSDK', '1.4.2'
OTHER_LDFLAGS = $(inherited) -framework "Foundation" -framework "UIKit" -framework "CoreLocation" -framework "CoreBluetooth"
Hi @mn-martin
Yes I tried the plugin in both platform.
Can you check your version of xcode ?
#error using os/log.h requires Xcode 8 or later
@Juneil Thank you for the quick reply :-)
I'm running on 8.2.1 (8C1002) which is the latest available version of Xcode on the App Store.
@Juneil According to http://www.telerik.com/forums/appbuilder-build-error-with-cordova-plugin-use-of-%27@import%27-when-modules-are-disabled#mY4iVtlQJkC2srRboTFb4A refactoring seems to be the only solution to this problem and indeed, I solved it refactoring KontaktSDK.framework and including that within the plugin instead of the Podfile. The native library seems to be exposed just fine.
I also included the build.xcconfig that I mentioned earlier. Maybe this will help you update your plugin.
@mn-martin Good to know. So the native library KontaktSDK 1.4.2 is not working with latest xcode version ?
@Juneil There's nothing wrong about the SDK. It's just that it's using a module import syntax that doesn't seem to be supported in NativeScript Context. Refactoring these in the header files that Xcode points you to with it's errors will fix it.
// change unsupported syntax
@import UIKit
@import Foundation
// to
#import <UIKit/UIKit.h>
#import <Foundation/Foundation.h>
Have you been able to get this compiled for the iOS platform? It's throwing several errors on me and I don't know how to fix them. (Testing with a clean --tsc install)
Here's the output: