juneil / nativescript-kontaktio

NativeScript Plugin for Kontakt io Beacons
2 stars 1 forks source link

iOS build fails #1

Open mn-martin opened 7 years ago

mn-martin commented 7 years ago

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:

$ tns create Example --tsc
Installing  tns-template-hello-world-ts
~/Desktop/Example
└─┬ tns-template-hello-world-ts@2.5.0 
  └── nativescript-theme-core@1.0.3 

~/Desktop/Example
└─┬ tns-core-modules@2.5.1 
  └── tns-core-modules-widgets@2.5.0 

> nativescript-dev-android-snapshot@0.0.7 postinstall ~/Desktop/Example/node_modules/nativescript-dev-android-snapshot
> node postinstall.js

> nativescript-dev-typescript@0.3.7 postinstall ~/Desktop/Example/node_modules/nativescript-dev-typescript
> node postinstall.js

Project already targets TypeScript ~2.1.0
~/Desktop/Example
├─┬ nativescript-dev-android-snapshot@0.0.7 
│ ├── adm-zip@0.4.7 
│ ├─┬ nativescript-hook@0.2.1 
│ │ ├─┬ glob@6.0.4 
│ │ │ ├─┬ inflight@1.0.6 
│ │ │ │ └── wrappy@1.0.2 
│ │ │ ├── inherits@2.0.3 
│ │ │ ├─┬ minimatch@3.0.3 
│ │ │ │ └─┬ brace-expansion@1.1.6 
│ │ │ │   ├── balanced-match@0.4.2 
│ │ │ │   └── concat-map@0.0.1 
│ │ │ ├── once@1.4.0 
│ │ │ └── path-is-absolute@1.0.1 
│ │ └─┬ mkdirp@0.5.1 
│ │   └── minimist@0.0.8 
│ ├── semver@5.3.0 
│ └── shelljs@0.6.1 
├── nativescript-dev-typescript@0.3.7 
└── typescript@2.1.6 

Project Example was successfully created.

$ cd Example/
$ tns plugin install nativescript-kontaktio
~/Desktop/Example
└─┬ nativescript-kontaktio@1.0.0 
  └── nativescript-permissions@1.2.3 

Successfully installed plugin nativescript-kontaktio.
$ tns run ios
Copying template files...
  ◟ Installing tns-iosInstalling  tns-ios
~/Desktop/Example
└── tns-ios@2.5.0 

Project successfully created.
Executing before-prepare hook from ~/Desktop/Example/hooks/before-prepare/nativescript-dev-android-snapshot.js
Executing before-prepare hook from ~/Desktop/Example/hooks/before-prepare/nativescript-dev-typescript.js
Found peer TypeScript 2.1.6
Preparing project...
Successfully prepared plugin nativescript-kontaktio for ios.
nativescript-permissions is not supported for ios.
Successfully prepared plugin nativescript-permissions for ios.
Successfully prepared plugin nativescript-theme-core for ios.
Successfully prepared plugin tns-core-modules for ios.
Successfully prepared plugin tns-core-modules-widgets for ios.
Installing pods...
Analyzing dependencies
Downloading dependencies
Installing KontaktSDK (1.4.2)
Generating Pods project
Integrating client project

[!] Please close any current Xcode sessions and use `Example.xcworkspace` for this project from now on.
Sending stats
Pod installation complete! There is 1 dependency from the Podfile and 1 total pod installed.
Project successfully prepared (ios)
Executing after-prepare hook from ~/Desktop/Example/hooks/after-prepare/nativescript-dev-android-snapshot.js
Searching for devices...
Building project...
Xcode 8 requires a team id to be specified when building for device.
You can specify the team id by setting the DEVELOPMENT_TEAM setting in build.xcconfig file located in App_Resources folder of your app, or by using the --teamId option when calling run, debug or livesync commnads.
? Found multiple development teams, select one: ...
? Do you want to make teamId: L27QV8PX6N a persistent choice for your app? Yes, set the DEVELOPMENT_TEAM setting in build.xcconfig file.
Build settings from command line:
    ARCHS = arm64
    CONFIGURATION_BUILD_DIR = ~/Desktop/Example/platforms/ios/build/device
    SDKROOT = iphoneos10.2
    SHARED_PRECOMPS_DIR = ~/Desktop/Example/platforms/ios/build/sharedpch
    VALID_ARCHS = arm64

=== BUILD TARGET Pods-Example OF PROJECT Pods WITH CONFIGURATION Debug ===

Check dependencies

Write auxiliary files
write-file ~/Library/Developer/Xcode/DerivedData/Example-dgxbgkhzawhatuciiawgszoqaqex/Build/Intermediates/Pods.build/Debug-iphoneos/Pods-Example.build/Pods_Example-own-target-headers.hmap
/bin/mkdir -p ~/Library/Developer/Xcode/DerivedData/Example-dgxbgkhzawhatuciiawgszoqaqex/Build/Intermediates/Pods.build/Debug-iphoneos/Pods-Example.build/DerivedSources
write-file ~/Library/Developer/Xcode/DerivedData/Example-dgxbgkhzawhatuciiawgszoqaqex/Build/Intermediates/Pods.build/Debug-iphoneos/Pods-Example.build/DerivedSources/Pods_Example_vers.c
write-file ~/Library/Developer/Xcode/DerivedData/Example-dgxbgkhzawhatuciiawgszoqaqex/Build/Intermediates/Pods.build/Debug-iphoneos/Pods-Example.build/Pods_Example-generated-files.hmap
write-file ~/Library/Developer/Xcode/DerivedData/Example-dgxbgkhzawhatuciiawgszoqaqex/Build/Intermediates/Pods.build/Debug-iphoneos/Pods-Example.build/module.modulemap
write-file ~/Library/Developer/Xcode/DerivedData/Example-dgxbgkhzawhatuciiawgszoqaqex/Build/Intermediates/Pods.build/Debug-iphoneos/Pods-Example.build/Pods_Example-project-headers.hmap
write-file ~/Library/Developer/Xcode/DerivedData/Example-dgxbgkhzawhatuciiawgszoqaqex/Build/Intermediates/Pods.build/all-product-headers.yaml
write-file ~/Library/Developer/Xcode/DerivedData/Example-dgxbgkhzawhatuciiawgszoqaqex/Build/Intermediates/Pods.build/Debug-iphoneos/Pods-Example.build/Pods_Example-all-target-headers.hmap
write-file ~/Library/Developer/Xcode/DerivedData/Example-dgxbgkhzawhatuciiawgszoqaqex/Build/Intermediates/Pods.build/Debug-iphoneos/Pods-Example.build/Pods_Example.hmap
write-file ~/Library/Developer/Xcode/DerivedData/Example-dgxbgkhzawhatuciiawgszoqaqex/Build/Intermediates/Pods.build/Debug-iphoneos/Pods-Example.build/Pods_Example-all-non-framework-target-headers.hmap
/bin/mkdir -p ~/Library/Developer/Xcode/DerivedData/Example-dgxbgkhzawhatuciiawgszoqaqex/Build/Intermediates/Pods.build/Debug-iphoneos/Pods-Example.build/Objects-normal/arm64
write-file ~/Library/Developer/Xcode/DerivedData/Example-dgxbgkhzawhatuciiawgszoqaqex/Build/Intermediates/Pods.build/Debug-iphoneos/Pods-Example.build/Objects-normal/arm64/Pods_Example.LinkFileList

Create product structure
/bin/mkdir -p ~/Desktop/Example/platforms/ios/build/device/Pods_Example.framework
/bin/mkdir -p ~/Desktop/Example/platforms/ios/build/device/Pods_Example.framework/Headers

ProcessInfoPlistFile ~/Desktop/Example/platforms/ios/build/device/Pods_Example.framework/Info.plist Target\ Support\ Files/Pods-Example/Info.plist
    cd ~/Desktop/Example/platforms/ios/Pods
    export PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/local/bin:~/bin/Sencha/Cmd:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin"
    builtin-infoPlistUtility ~/Desktop/Example/platforms/ios/Pods/Target\ Support\ Files/Pods-Example/Info.plist -expandbuildsettings -format binary -platform iphoneos -requiredArchitecture arm64 -o ~/Desktop/Example/platforms/ios/build/device/Pods_Example.framework/Info.plist

CompileC ~/Library/Developer/Xcode/DerivedData/Example-dgxbgkhzawhatuciiawgszoqaqex/Build/Intermediates/Pods.build/Debug-iphoneos/Pods-Example.build/Objects-normal/arm64/Pods_Example_vers.o ~/Library/Developer/Xcode/DerivedData/Example-dgxbgkhzawhatuciiawgszoqaqex/Build/Intermediates/Pods.build/Debug-iphoneos/Pods-Example.build/DerivedSources/Pods_Example_vers.c normal arm64 c com.apple.compilers.llvm.clang.1_0.compiler
    cd ~/Desktop/Example/platforms/ios/Pods
    export LANG=en_US.US-ASCII
    export PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/local/bin:~/bin/Sencha/Cmd:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin"
    /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -x c -arch arm64 -fmessage-length=160 -fdiagnostics-show-note-include-stack -fmacro-backtrace-limit=0 -fcolor-diagnostics -std=gnu99 -fmodules -gmodules -fmodules-cache-path=~/Library/Developer/Xcode/DerivedData/ModuleCache -fmodules-prune-interval=86400 -fmodules-prune-after=345600 -fbuild-session-file=~/Library/Developer/Xcode/DerivedData/ModuleCache/Session.modulevalidation -fmodules-validate-once-per-build-session -Wnon-modular-include-in-framework-module -Werror=non-modular-include-in-framework-module -Xclang -fmodule-implementation-of -Xclang Pods_Example -Wno-trigraphs -fpascal-strings -O0 -fno-common -Wno-missing-field-initializers -Wno-missing-prototypes -Wunreachable-code -Wno-missing-braces -Wparentheses -Wswitch -Wunused-function -Wno-unused-label -Wno-unused-parameter -Wunused-variable -Wunused-value -Wempty-body -Wuninitialized -Wno-unknown-pragmas -Wno-shadow -Wno-four-char-constants -Wno-conversion -Wconstant-conversion -Wint-conversion -Wbool-conversion -Wenum-conversion -Wshorten-64-to-32 -Wpointer-sign -Wno-newline-eof -DPOD_CONFIGURATION_DEBUG=1 -DDEBUG=1 -DCOCOAPODS=1 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS10.2.sdk -fstrict-aliasing -Wdeprecated-declarations -miphoneos-version-min=8.0 -g -Wno-sign-conversion -Wno-infinite-recursion -fembed-bitcode-marker -iquote ~/Library/Developer/Xcode/DerivedData/Example-dgxbgkhzawhatuciiawgszoqaqex/Build/Intermediates/Pods.build/Debug-iphoneos/Pods-Example.build/Pods_Example-generated-files.hmap -I~/Library/Developer/Xcode/DerivedData/Example-dgxbgkhzawhatuciiawgszoqaqex/Build/Intermediates/Pods.build/Debug-iphoneos/Pods-Example.build/Pods_Example-own-target-headers.hmap -I~/Library/Developer/Xcode/DerivedData/Example-dgxbgkhzawhatuciiawgszoqaqex/Build/Intermediates/Pods.build/Debug-iphoneos/Pods-Example.build/Pods_Example-all-non-framework-target-headers.hmap -ivfsoverlay ~/Library/Developer/Xcode/DerivedData/Example-dgxbgkhzawhatuciiawgszoqaqex/Build/Intermediates/Pods.build/all-product-headers.yaml -iquote ~/Library/Developer/Xcode/DerivedData/Example-dgxbgkhzawhatuciiawgszoqaqex/Build/Intermediates/Pods.build/Debug-iphoneos/Pods-Example.build/Pods_Example-project-headers.hmap -I~/Desktop/Example/platforms/ios/build/device/include -I~/Desktop/Example/platforms/ios/Pods/Headers/Public -I~/Desktop/Example/platforms/ios/Pods/Headers/Public/KontaktSDK -I~/Library/Developer/Xcode/DerivedData/Example-dgxbgkhzawhatuciiawgszoqaqex/Build/Intermediates/Pods.build/Debug-iphoneos/Pods-Example.build/DerivedSources/arm64 -I~/Library/Developer/Xcode/DerivedData/Example-dgxbgkhzawhatuciiawgszoqaqex/Build/Intermediates/Pods.build/Debug-iphoneos/Pods-Example.build/DerivedSources -F~/Desktop/Example/platforms/ios/build/device -F~/Desktop/Example/platforms/ios/Pods/KontaktSDK/Cocoapods/iOS -isystem ~/Desktop/Example/platforms/ios/Pods/Headers/Public -isystem ~/Desktop/Example/platforms/ios/Pods/Headers/Public/KontaktSDK -MMD -MT dependencies -MF ~/Library/Developer/Xcode/DerivedData/Example-dgxbgkhzawhatuciiawgszoqaqex/Build/Intermediates/Pods.build/Debug-iphoneos/Pods-Example.build/Objects-normal/arm64/Pods_Example_vers.d --serialize-diagnostics ~/Library/Developer/Xcode/DerivedData/Example-dgxbgkhzawhatuciiawgszoqaqex/Build/Intermediates/Pods.build/Debug-iphoneos/Pods-Example.build/Objects-normal/arm64/Pods_Example_vers.dia -c ~/Library/Developer/Xcode/DerivedData/Example-dgxbgkhzawhatuciiawgszoqaqex/Build/Intermediates/Pods.build/Debug-iphoneos/Pods-Example.build/DerivedSources/Pods_Example_vers.c -o ~/Library/Developer/Xcode/DerivedData/Example-dgxbgkhzawhatuciiawgszoqaqex/Build/Intermediates/Pods.build/Debug-iphoneos/Pods-Example.build/Objects-normal/arm64/Pods_Example_vers.o

CompileC ~/Library/Developer/Xcode/DerivedData/Example-dgxbgkhzawhatuciiawgszoqaqex/Build/Intermediates/Pods.build/Debug-iphoneos/Pods-Example.build/Objects-normal/arm64/Pods-Example-dummy.o Target\ Support\ Files/Pods-Example/Pods-Example-dummy.m normal arm64 objective-c com.apple.compilers.llvm.clang.1_0.compiler
    cd ~/Desktop/Example/platforms/ios/Pods
    export LANG=en_US.US-ASCII
    export PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/local/bin:~/bin/Sencha/Cmd:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin"
    /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -x objective-c -arch arm64 -fmessage-length=160 -fdiagnostics-show-note-include-stack -fmacro-backtrace-limit=0 -fcolor-diagnostics -std=gnu99 -fobjc-arc -fmodules -gmodules -fmodules-cache-path=~/Library/Developer/Xcode/DerivedData/ModuleCache -fmodules-prune-interval=86400 -fmodules-prune-after=345600 -fbuild-session-file=~/Library/Developer/Xcode/DerivedData/ModuleCache/Session.modulevalidation -fmodules-validate-once-per-build-session -Wnon-modular-include-in-framework-module -Werror=non-modular-include-in-framework-module -Xclang -fmodule-implementation-of -Xclang Pods_Example -Wno-trigraphs -fpascal-strings -O0 -fno-common -Wno-missing-field-initializers -Wno-missing-prototypes -Wunreachable-code -Wno-implicit-atomic-properties -Wno-arc-repeated-use-of-weak -Wduplicate-method-match -Wno-missing-braces -Wparentheses -Wswitch -Wunused-function -Wno-unused-label -Wno-unused-parameter -Wunused-variable -Wunused-value -Wempty-body -Wuninitialized -Wno-unknown-pragmas -Wno-shadow -Wno-four-char-constants -Wno-conversion -Wconstant-conversion -Wint-conversion -Wbool-conversion -Wenum-conversion -Wshorten-64-to-32 -Wpointer-sign -Wno-newline-eof -Wno-selector -Wno-strict-selector-match -Wundeclared-selector -Wno-deprecated-implementations -DPOD_CONFIGURATION_DEBUG=1 -DDEBUG=1 -DCOCOAPODS=1 -DOBJC_OLD_DISPATCH_PROTOTYPES=0 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS10.2.sdk -fstrict-aliasing -Wprotocol -Wdeprecated-declarations -miphoneos-version-min=8.0 -g -Wno-sign-conversion -Wno-infinite-recursion -fembed-bitcode-marker -iquote ~/Library/Developer/Xcode/DerivedData/Example-dgxbgkhzawhatuciiawgszoqaqex/Build/Intermediates/Pods.build/Debug-iphoneos/Pods-Example.build/Pods_Example-generated-files.hmap -I~/Library/Developer/Xcode/DerivedData/Example-dgxbgkhzawhatuciiawgszoqaqex/Build/Intermediates/Pods.build/Debug-iphoneos/Pods-Example.build/Pods_Example-own-target-headers.hmap -I~/Library/Developer/Xcode/DerivedData/Example-dgxbgkhzawhatuciiawgszoqaqex/Build/Intermediates/Pods.build/Debug-iphoneos/Pods-Example.build/Pods_Example-all-non-framework-target-headers.hmap -ivfsoverlay ~/Library/Developer/Xcode/DerivedData/Example-dgxbgkhzawhatuciiawgszoqaqex/Build/Intermediates/Pods.build/all-product-headers.yaml -iquote ~/Library/Developer/Xcode/DerivedData/Example-dgxbgkhzawhatuciiawgszoqaqex/Build/Intermediates/Pods.build/Debug-iphoneos/Pods-Example.build/Pods_Example-project-headers.hmap -I~/Desktop/Example/platforms/ios/build/device/include -I~/Desktop/Example/platforms/ios/Pods/Headers/Public -I~/Desktop/Example/platforms/ios/Pods/Headers/Public/KontaktSDK -I~/Library/Developer/Xcode/DerivedData/Example-dgxbgkhzawhatuciiawgszoqaqex/Build/Intermediates/Pods.build/Debug-iphoneos/Pods-Example.build/DerivedSources/arm64 -I~/Library/Developer/Xcode/DerivedData/Example-dgxbgkhzawhatuciiawgszoqaqex/Build/Intermediates/Pods.build/Debug-iphoneos/Pods-Example.build/DerivedSources -F~/Desktop/Example/platforms/ios/build/device -F~/Desktop/Example/platforms/ios/Pods/KontaktSDK/Cocoapods/iOS -isystem ~/Desktop/Example/platforms/ios/Pods/Headers/Public -isystem ~/Desktop/Example/platforms/ios/Pods/Headers/Public/KontaktSDK -MMD -MT dependencies -MF ~/Library/Developer/Xcode/DerivedData/Example-dgxbgkhzawhatuciiawgszoqaqex/Build/Intermediates/Pods.build/Debug-iphoneos/Pods-Example.build/Objects-normal/arm64/Pods-Example-dummy.d --serialize-diagnostics ~/Library/Developer/Xcode/DerivedData/Example-dgxbgkhzawhatuciiawgszoqaqex/Build/Intermediates/Pods.build/Debug-iphoneos/Pods-Example.build/Objects-normal/arm64/Pods-Example-dummy.dia -c ~/Desktop/Example/platforms/ios/Pods/Target\ Support\ Files/Pods-Example/Pods-Example-dummy.m -o ~/Library/Developer/Xcode/DerivedData/Example-dgxbgkhzawhatuciiawgszoqaqex/Build/Intermediates/Pods.build/Debug-iphoneos/Pods-Example.build/Objects-normal/arm64/Pods-Example-dummy.o

Libtool ~/Desktop/Example/platforms/ios/build/device/Pods_Example.framework/Pods_Example normal arm64
    cd ~/Desktop/Example/platforms/ios/Pods
    export IPHONEOS_DEPLOYMENT_TARGET=8.0
    export PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/local/bin:~/bin/Sencha/Cmd:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin"
    /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool -static -arch_only arm64 -syslibroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS10.2.sdk -L~/Desktop/Example/platforms/ios/build/device -filelist ~/Library/Developer/Xcode/DerivedData/Example-dgxbgkhzawhatuciiawgszoqaqex/Build/Intermediates/Pods.build/Debug-iphoneos/Pods-Example.build/Objects-normal/arm64/Pods_Example.LinkFileList -framework Foundation -o ~/Desktop/Example/platforms/ios/build/device/Pods_Example.framework/Pods_Example

CpHeader Target\ Support\ Files/Pods-Example/Pods-Example-umbrella.h ~/Desktop/Example/platforms/ios/build/device/Pods_Example.framework/Headers/Pods-Example-umbrella.h
    cd ~/Desktop/Example/platforms/ios/Pods
    export PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/local/bin:~/bin/Sencha/Cmd:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin"
    builtin-copy -exclude .DS_Store -exclude CVS -exclude .svn -exclude .git -exclude .hg -resolve-src-symlinks ~/Desktop/Example/platforms/ios/Pods/Target\ Support\ Files/Pods-Example/Pods-Example-umbrella.h ~/Desktop/Example/platforms/ios/build/device/Pods_Example.framework/Headers

Ditto ~/Library/Developer/Xcode/DerivedData/Example-dgxbgkhzawhatuciiawgszoqaqex/Build/Intermediates/Pods.build/Debug-iphoneos/Pods-Example.build/module.modulemap ~/Desktop/Example/platforms/ios/build/device/Pods_Example.framework/Modules/module.modulemap
    cd ~/Desktop/Example/platforms/ios/Pods
    export PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/local/bin:~/bin/Sencha/Cmd:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin"
    builtin-copy -exclude .DS_Store -exclude CVS -exclude .svn -exclude .git -exclude .hg -resolve-src-symlinks ~/Library/Developer/Xcode/DerivedData/Example-dgxbgkhzawhatuciiawgszoqaqex/Build/Intermediates/Pods.build/Debug-iphoneos/Pods-Example.build/module.modulemap ~/Desktop/Example/platforms/ios/build/device/Pods_Example.framework/Modules

Touch ~/Desktop/Example/platforms/ios/build/device/Pods_Example.framework
    cd ~/Desktop/Example/platforms/ios/Pods
    export PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/local/bin:~/bin/Sencha/Cmd:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin"
    /usr/bin/touch -c ~/Desktop/Example/platforms/ios/build/device/Pods_Example.framework

=== BUILD TARGET Example OF PROJECT Example WITH CONFIGURATION Debug ===

Check dependencies

Write auxiliary files
write-file ~/Library/Developer/Xcode/DerivedData/Example-dgxbgkhzawhatuciiawgszoqaqex/Build/Intermediates/Example.build/Debug-iphoneos/Example.build/Script-87949F2D8F6D704BDF0B9AB0.sh
chmod 0755 ~/Library/Developer/Xcode/DerivedData/Example-dgxbgkhzawhatuciiawgszoqaqex/Build/Intermediates/Example.build/Debug-iphoneos/Example.build/Script-87949F2D8F6D704BDF0B9AB0.sh
/bin/mkdir -p ~/Desktop/Example/platforms/ios/build/sharedpch/Example-Prefix-bvuiwfnrwuqxbzetizosmkvaqpdd
write-file ~/Desktop/Example/platforms/ios/build/sharedpch/Example-Prefix-bvuiwfnrwuqxbzetizosmkvaqpdd/Example-Prefix.pch.pch.hash-criteria
write-file ~/Library/Developer/Xcode/DerivedData/Example-dgxbgkhzawhatuciiawgszoqaqex/Build/Intermediates/Example.build/Debug-iphoneos/Example.build/Script-C97FD7AC1ADE5369004DB2A4.sh
chmod 0755 ~/Library/Developer/Xcode/DerivedData/Example-dgxbgkhzawhatuciiawgszoqaqex/Build/Intermediates/Example.build/Debug-iphoneos/Example.build/Script-C97FD7AC1ADE5369004DB2A4.sh
write-file ~/Library/Developer/Xcode/DerivedData/Example-dgxbgkhzawhatuciiawgszoqaqex/Build/Intermediates/Example.build/Debug-iphoneos/Example.build/Example-project-headers.hmap
write-file ~/Library/Developer/Xcode/DerivedData/Example-dgxbgkhzawhatuciiawgszoqaqex/Build/Intermediates/Example.build/Debug-iphoneos/Example.build/Script-CD3EAD351B05FF060042DBFC.sh
chmod 0755 ~/Library/Developer/Xcode/DerivedData/Example-dgxbgkhzawhatuciiawgszoqaqex/Build/Intermediates/Example.build/Debug-iphoneos/Example.build/Script-CD3EAD351B05FF060042DBFC.sh
write-file ~/Library/Developer/Xcode/DerivedData/Example-dgxbgkhzawhatuciiawgszoqaqex/Build/Intermediates/Example.build/Debug-iphoneos/Example.build/Script-DBB2798F154B657A9F1BB762.sh
chmod 0755 ~/Library/Developer/Xcode/DerivedData/Example-dgxbgkhzawhatuciiawgszoqaqex/Build/Intermediates/Example.build/Debug-iphoneos/Example.build/Script-DBB2798F154B657A9F1BB762.sh
write-file ~/Library/Developer/Xcode/DerivedData/Example-dgxbgkhzawhatuciiawgszoqaqex/Build/Intermediates/Example.build/Debug-iphoneos/Example.build/Example-all-non-framework-target-headers.hmap
write-file ~/Library/Developer/Xcode/DerivedData/Example-dgxbgkhzawhatuciiawgszoqaqex/Build/Intermediates/Example.build/Debug-iphoneos/Example.build/Example.hmap
write-file ~/Library/Developer/Xcode/DerivedData/Example-dgxbgkhzawhatuciiawgszoqaqex/Build/Intermediates/Example.build/Debug-iphoneos/Example.build/Script-40B6EE5E05C2E2E955055871.sh
chmod 0755 ~/Library/Developer/Xcode/DerivedData/Example-dgxbgkhzawhatuciiawgszoqaqex/Build/Intermediates/Example.build/Debug-iphoneos/Example.build/Script-40B6EE5E05C2E2E955055871.sh
write-file ~/Library/Developer/Xcode/DerivedData/Example-dgxbgkhzawhatuciiawgszoqaqex/Build/Intermediates/Example.build/Debug-iphoneos/Example.build/Script-CD62955B1BB2651D00AE3A93.sh
chmod 0755 ~/Library/Developer/Xcode/DerivedData/Example-dgxbgkhzawhatuciiawgszoqaqex/Build/Intermediates/Example.build/Debug-iphoneos/Example.build/Script-CD62955B1BB2651D00AE3A93.sh
write-file ~/Library/Developer/Xcode/DerivedData/Example-dgxbgkhzawhatuciiawgszoqaqex/Build/Intermediates/Example.build/Debug-iphoneos/Example.build/Example-own-target-headers.hmap
/bin/mkdir -p ~/Library/Developer/Xcode/DerivedData/Example-dgxbgkhzawhatuciiawgszoqaqex/Build/Intermediates/Example.build/Debug-iphoneos/Example.build/Objects-normal/arm64
write-file ~/Library/Developer/Xcode/DerivedData/Example-dgxbgkhzawhatuciiawgszoqaqex/Build/Intermediates/Example.build/Debug-iphoneos/Example.build/Objects-normal/arm64/Example.LinkFileList
write-file ~/Library/Developer/Xcode/DerivedData/Example-dgxbgkhzawhatuciiawgszoqaqex/Build/Intermediates/Example.build/Debug-iphoneos/Example.build/Example-generated-files.hmap
write-file ~/Library/Developer/Xcode/DerivedData/Example-dgxbgkhzawhatuciiawgszoqaqex/Build/Intermediates/Example.build/Debug-iphoneos/Example.build/Example-all-target-headers.hmap

Create product structure
/bin/mkdir -p ~/Desktop/Example/platforms/ios/build/device/Example.app

PhaseScriptExecution [CP]\ Check\ Pods\ Manifest.lock ~/Library/Developer/Xcode/DerivedData/Example-dgxbgkhzawhatuciiawgszoqaqex/Build/Intermediates/Example.build/Debug-iphoneos/Example.build/Script-40B6EE5E05C2E2E955055871.sh
    cd ~/Desktop/Example/platforms/ios
    /bin/sh -c ~/Library/Developer/Xcode/DerivedData/Example-dgxbgkhzawhatuciiawgszoqaqex/Build/Intermediates/Example.build/Debug-iphoneos/Example.build/Script-40B6EE5E05C2E2E955055871.sh

PhaseScriptExecution NativeScript\ PreBuild ~/Library/Developer/Xcode/DerivedData/Example-dgxbgkhzawhatuciiawgszoqaqex/Build/Intermediates/Example.build/Debug-iphoneos/Example.build/Script-C97FD7AC1ADE5369004DB2A4.sh
    cd ~/Desktop/Example/platforms/ios
    /bin/sh -c ~/Library/Developer/Xcode/DerivedData/Example-dgxbgkhzawhatuciiawgszoqaqex/Build/Intermediates/Example.build/Debug-iphoneos/Example.build/Script-C97FD7AC1ADE5369004DB2A4.sh
~/Desktop/Example/platforms/ios/internal/metadata-generator/bin ~/Desktop/Example/platforms/ios
Python version: 2.7.10 (default, Jul 30 2016, 19:40:32) 
[GCC 4.2.1 Compatible Apple LLVM 8.0.0 (clang-800.0.34)]
Generating metadata for arm64
Metadata Generator Arguments: 
"./objc-metadata-generator", "-output-bin", "~/Desktop/Example/platforms/ios/build/device/metadata-arm64.bin", "-output-umbrella", "~/Desktop/Example/platforms/ios/build/device/umbrella-arm64.h", "-docset-path", "~/Library/Developer/Shared/Documentation/DocSets/com.apple.adc.documentation.iOS.docset", "Xclang", "-isysroot", "/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS10.2.sdk", "-arch", "arm64", "-miphoneos-version-min=8.0", "-std=gnu99", "-I~/Desktop/Example/platforms/ios/build/device/include", "-I~/Desktop/Example/platforms/ios/Pods/Headers/Public", "-I~/Desktop/Example/platforms/ios/Pods/Headers/Public/KontaktSDK", "-I~/Desktop/Example/platforms/ios/internal", "-F~/Desktop/Example/platforms/ios/build/device", "-F~/Desktop/Example/platforms/ios/Pods/KontaktSDK/Cocoapods/iOS", "-F~/Desktop/Example/platforms/ios/internal/", "-F~/Desktop/Example/platforms/ios/../../node_modules/tns-core-modules-widgets/platforms/ios", "-isystem", "~/Desktop/Example/platforms/ios/Pods/Headers/Public", "-isystem", "~/Desktop/Example/platforms/ios/Pods/Headers/Public/KontaktSDK", "-DCOCOAPODS=1", "-DDEBUG=1", 
Clang Arguments: 
"-v", "-x", "objective-c", "-fno-objc-arc", "-fmodule-maps", "-ferror-limit=0", "-Wno-unknown-pragmas", "-Wno-ignored-attributes", "-Wno-nullability-completeness", "-Wno-expansion-to-defined", "-isysroot", "/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS10.2.sdk", "-arch", "arm64", "-miphoneos-version-min=8.0", "-std=gnu99", "-I~/Desktop/Example/platforms/ios/build/device/include", "-I~/Desktop/Example/platforms/ios/Pods/Headers/Public", "-I~/Desktop/Example/platforms/ios/Pods/Headers/Public/KontaktSDK", "-I~/Desktop/Example/platforms/ios/internal", "-F~/Desktop/Example/platforms/ios/build/device", "-F~/Desktop/Example/platforms/ios/Pods/KontaktSDK/Cocoapods/iOS", "-F~/Desktop/Example/platforms/ios/internal/", "-F~/Desktop/Example/platforms/ios/../../node_modules/tns-core-modules-widgets/platforms/ios", "-isystem", "~/Desktop/Example/platforms/ios/Pods/Headers/Public", "-isystem", "~/Desktop/Example/platforms/ios/Pods/Headers/Public/KontaktSDK", "-DCOCOAPODS=1", "-DDEBUG=1", 
Error: Unable to generate metadata for arm64.
clang version 3.9.0 (tags/RELEASE_390/final)
Target: aarch64-apple-darwin16.4.0
Thread model: posix
InstalledDir: 
clang Invocation:
 "clang-tool" "-cc1" "-triple" "arm64-apple-ios8.0.0" "-Wdeprecated-objc-isa-usage" "-Werror=deprecated-objc-isa-usage" "-Werror=implicit-function-declaration" "-fsyntax-only" "-disable-free" "-disable-llvm-verifier" "-discard-value-names" "-main-file-name" "umbrella.h" "-mrelocation-model" "pic" "-pic-level" "2" "-mthread-model" "posix" "-mdisable-fp-elim" "-masm-verbose" "-target-cpu" "cyclone" "-target-feature" "+neon" "-target-feature" "+crypto" "-target-feature" "+zcm" "-target-feature" "+zcz" "-target-abi" "darwinpcs" "-target-linker-version" "264.3.102" "-v" "-dwarf-column-info" "-debugger-tuning=lldb" "-resource-dir" "../lib/clang/3.9.0" "-isysroot" "/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS10.2.sdk" "-isystem" "~/Desktop/Example/platforms/ios/Pods/Headers/Public" "-isystem" "~/Desktop/Example/platforms/ios/Pods/Headers/Public/KontaktSDK" "-I" "~/Desktop/Example/platforms/ios/build/device/include" "-I" "~/Desktop/Example/platforms/ios/Pods/Headers/Public" "-I" "~/Desktop/Example/platforms/ios/Pods/Headers/Public/KontaktSDK" "-I" "~/Desktop/Example/platforms/ios/internal" "-F~/Desktop/Example/platforms/ios/build/device" "-F~/Desktop/Example/platforms/ios/Pods/KontaktSDK/Cocoapods/iOS" "-F~/Desktop/Example/platforms/ios/internal/" "-F~/Desktop/Example/platforms/ios/../../node_modules/tns-core-modules-widgets/platforms/ios" "-D" "COCOAPODS=1" "-D" "DEBUG=1" "-Wno-unknown-pragmas" "-Wno-ignored-attributes" "-Wno-nullability-completeness" "-Wno-expansion-to-defined" "-std=gnu99" "-fdebug-compilation-dir" "~/Desktop/Example/platforms/ios/internal/metadata-generator/bin" "-ferror-limit" "0" "-fmessage-length" "0" "-stack-protector" "1" "-fallow-half-arguments-and-returns" "-fblocks" "-fimplicit-module-maps" "-fobjc-runtime=ios-8.0.0" "-fencode-extended-block-signature" "-fobjc-exceptions" "-fexceptions" "-fmax-type-align=16" "-fdiagnostics-show-option" "-x" "objective-c" "umbrella.h"

ignoring nonexistent directory "~/Desktop/Example/platforms/ios/build/device/include"
ignoring nonexistent directory "~/Desktop/Example/platforms/ios/Pods/Headers/Public"
ignoring nonexistent directory "~/Desktop/Example/platforms/ios/Pods/Headers/Public/KontaktSDK"
ignoring nonexistent directory "~/Desktop/Example/platforms/ios/Pods/Headers/Public"
ignoring nonexistent directory "~/Desktop/Example/platforms/ios/Pods/Headers/Public/KontaktSDK"
ignoring nonexistent directory "/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS10.2.sdk/usr/local/include"
ignoring nonexistent directory "/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS10.2.sdk/Library/Frameworks"
#include "..." search starts here:
#include <...> search starts here:
 ~/Desktop/Example/platforms/ios/internal
 ~/Desktop/Example/platforms/ios/build/device (framework directory)
 ~/Desktop/Example/platforms/ios/Pods/KontaktSDK/Cocoapods/iOS (framework directory)
 ~/Desktop/Example/platforms/ios/internal (framework directory)
 ~/Desktop/Example/platforms/ios/../../node_modules/tns-core-modules-widgets/platforms/ios (framework directory)
 ../lib/clang/3.9.0/include
 /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS10.2.sdk/usr/include
 /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS10.2.sdk/System/Library/Frameworks (framework directory)
End of search list.
clang version 3.9.0 (tags/RELEASE_390/final)
Target: aarch64-apple-darwin16.4.0
Thread model: posix
InstalledDir: 
clang Invocation:
 "objc-metadata-generator" "-cc1" "-triple" "arm64-apple-ios8.0.0" "-Wdeprecated-objc-isa-usage" "-Werror=deprecated-objc-isa-usage" "-Werror=implicit-function-declaration" "-fsyntax-only" "-disable-free" "-disable-llvm-verifier" "-discard-value-names" "-main-file-name" "umbrella.h" "-mrelocation-model" "pic" "-pic-level" "2" "-mthread-model" "posix" "-mdisable-fp-elim" "-masm-verbose" "-target-cpu" "cyclone" "-target-feature" "+neon" "-target-feature" "+crypto" "-target-feature" "+zcm" "-target-feature" "+zcz" "-target-abi" "darwinpcs" "-target-linker-version" "264.3.102" "-v" "-dwarf-column-info" "-debugger-tuning=lldb" "-resource-dir" "../lib/clang/3.9.0" "-isysroot" "/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS10.2.sdk" "-isystem" "~/Desktop/Example/platforms/ios/Pods/Headers/Public" "-isystem" "~/Desktop/Example/platforms/ios/Pods/Headers/Public/KontaktSDK" "-I" "~/Desktop/Example/platforms/ios/build/device/include" "-I" "~/Desktop/Example/platforms/ios/Pods/Headers/Public" "-I" "~/Desktop/Example/platforms/ios/Pods/Headers/Public/KontaktSDK" "-I" "~/Desktop/Example/platforms/ios/internal" "-F~/Desktop/Example/platforms/ios/build/device" "-F~/Desktop/Example/platforms/ios/Pods/KontaktSDK/Cocoapods/iOS" "-F~/Desktop/Example/platforms/ios/internal/" "-F~/Desktop/Example/platforms/ios/../../node_modules/tns-core-modules-widgets/platforms/ios" "-D" "COCOAPODS=1" "-D" "DEBUG=1" "-Wno-unknown-pragmas" "-Wno-ignored-attributes" "-Wno-nullability-completeness" "-Wno-expansion-to-defined" "-std=gnu99" "-fdebug-compilation-dir" "~/Desktop/Example/platforms/ios/internal/metadata-generator/bin" "-ferror-limit" "0" "-fmessage-length" "0" "-stack-protector" "1" "-fallow-half-arguments-and-returns" "-fblocks" "-fimplicit-module-maps" "-fobjc-runtime=ios-8.0.0" "-fencode-extended-block-signature" "-fobjc-exceptions" "-fexceptions" "-fmax-type-align=16" "-fdiagnostics-show-option" "-x" "objective-c" "umbrella.h"

clang -cc1 version 3.9.0 based upon LLVM 3.9.0 default target x86_64-apple-darwin16.4.0
ignoring nonexistent directory "~/Desktop/Example/platforms/ios/build/device/include"
ignoring nonexistent directory "~/Desktop/Example/platforms/ios/Pods/Headers/Public"
ignoring nonexistent directory "~/Desktop/Example/platforms/ios/Pods/Headers/Public/KontaktSDK"
ignoring nonexistent directory "~/Desktop/Example/platforms/ios/Pods/Headers/Public"
ignoring nonexistent directory "~/Desktop/Example/platforms/ios/Pods/Headers/Public/KontaktSDK"
ignoring nonexistent directory "/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS10.2.sdk/usr/local/include"
ignoring nonexistent directory "/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS10.2.sdk/Library/Frameworks"
#include "..." search starts here:
#include <...> search starts here:
 ~/Desktop/Example/platforms/ios/internal
 ~/Desktop/Example/platforms/ios/build/device (framework directory)
 ~/Desktop/Example/platforms/ios/Pods/KontaktSDK/Cocoapods/iOS (framework directory)
 ~/Desktop/Example/platforms/ios/internal (framework directory)
 ~/Desktop/Example/platforms/ios/../../node_modules/tns-core-modules-widgets/platforms/ios (framework directory)
 ../lib/clang/3.9.0/include
 /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS10.2.sdk/usr/include
 /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS10.2.sdk/System/Library/Frameworks (framework directory)
End of search list.
In file included from umbrella.h:519:
In file included from ~/Desktop/Example/platforms/ios/Pods/KontaktSDK/Cocoapods/iOS/KontaktSDK.framework/Headers/KontaktSDK.h:16:
~/Desktop/Example/platforms/ios/Pods/KontaktSDK/Cocoapods/iOS/KontaktSDK.framework/Headers/Kontakt.h:8:1: error: use of '@import' when modules are disabled
@import Foundation;
^
In file included from umbrella.h:519:
In file included from ~/Desktop/Example/platforms/ios/Pods/KontaktSDK/Cocoapods/iOS/KontaktSDK.framework/Headers/KontaktSDK.h:17:
~/Desktop/Example/platforms/ios/Pods/KontaktSDK/Cocoapods/iOS/KontaktSDK.framework/Headers/NSData+Kontakt.h:8:1: error: use of '@import' when modules are disabled
@import Foundation;
^
In file included from umbrella.h:519:
In file included from ~/Desktop/Example/platforms/ios/Pods/KontaktSDK/Cocoapods/iOS/KontaktSDK.framework/Headers/KontaktSDK.h:18:
~/Desktop/Example/platforms/ios/Pods/KontaktSDK/Cocoapods/iOS/KontaktSDK.framework/Headers/NSString+Kontakt.h:8:1: error: use of '@import' when modules are disabled
@import Foundation;
^
In file included from umbrella.h:519:
In file included from ~/Desktop/Example/platforms/ios/Pods/KontaktSDK/Cocoapods/iOS/KontaktSDK.framework/Headers/KontaktSDK.h:19:
~/Desktop/Example/platforms/ios/Pods/KontaktSDK/Cocoapods/iOS/KontaktSDK.framework/Headers/KTKCloudClient.h:8:1: error: use of '@import' when modules are disabled
@import Foundation;
^
~/Desktop/Example/platforms/ios/Pods/KontaktSDK/Cocoapods/iOS/KontaktSDK.framework/Headers/KTKCloudClient.h:11:1: error: use of '@import' when modules are disabled
@import UIKit;
^
In file included from umbrella.h:519:
In file included from ~/Desktop/Example/platforms/ios/Pods/KontaktSDK/Cocoapods/iOS/KontaktSDK.framework/Headers/KontaktSDK.h:19:
In file included from ~/Desktop/Example/platforms/ios/Pods/KontaktSDK/Cocoapods/iOS/KontaktSDK.framework/Headers/KTKCloudClient.h:14:
~/Desktop/Example/platforms/ios/Pods/KontaktSDK/Cocoapods/iOS/KontaktSDK.framework/Headers/KTKKontaktResponse.h:8:1: error: use of '@import' when modules are disabled
@import Foundation;
^
In file included from umbrella.h:519:
In file included from ~/Desktop/Example/platforms/ios/Pods/KontaktSDK/Cocoapods/iOS/KontaktSDK.framework/Headers/KontaktSDK.h:20:
In file included from ~/Desktop/Example/platforms/ios/Pods/KontaktSDK/Cocoapods/iOS/KontaktSDK.framework/Headers/KTKDevice.h:8:
~/Desktop/Example/platforms/ios/Pods/KontaktSDK/Cocoapods/iOS/KontaktSDK.framework/Headers/KTKCloudModel.h:8:1: error: use of '@import' when modules are disabled
@import Foundation;
^
In file included from umbrella.h:519:
In file included from ~/Desktop/Example/platforms/ios/Pods/KontaktSDK/Cocoapods/iOS/KontaktSDK.framework/Headers/KontaktSDK.h:20:
In file included from ~/Desktop/Example/platforms/ios/Pods/KontaktSDK/Cocoapods/iOS/KontaktSDK.framework/Headers/KTKDevice.h:9:
~/Desktop/Example/platforms/ios/Pods/KontaktSDK/Cocoapods/iOS/KontaktSDK.framework/Headers/KTKDeviceDefinitions.h:8:1: error: use of '@import' when modules are disabled
@import Foundation;
^
In file included from umbrella.h:519:
In file included from ~/Desktop/Example/platforms/ios/Pods/KontaktSDK/Cocoapods/iOS/KontaktSDK.framework/Headers/KontaktSDK.h:20:
In file included from ~/Desktop/Example/platforms/ios/Pods/KontaktSDK/Cocoapods/iOS/KontaktSDK.framework/Headers/KTKDevice.h:10:
In file included from ~/Desktop/Example/platforms/ios/Pods/KontaktSDK/Cocoapods/iOS/KontaktSDK.framework/Headers/KTKDeviceConfiguration.h:10:
~/Desktop/Example/platforms/ios/Pods/KontaktSDK/Cocoapods/iOS/KontaktSDK.framework/Headers/KTKDevicePowerSaving.h:8:1: error: use of '@import' when modules are disabled
@import Foundation;
^
In file included from umbrella.h:519:
In file included from ~/Desktop/Example/platforms/ios/Pods/KontaktSDK/Cocoapods/iOS/KontaktSDK.framework/Headers/KontaktSDK.h:24:
~/Desktop/Example/platforms/ios/Pods/KontaktSDK/Cocoapods/iOS/KontaktSDK.framework/Headers/KTKAction.h:8:1: error: use of '@import' when modules are disabled
@import CoreLocation;
^
~/Desktop/Example/platforms/ios/Pods/KontaktSDK/Cocoapods/iOS/KontaktSDK.framework/Headers/KTKAction.h:11:9: error: unknown type name 'CLProximity'
typedef CLProximity Proximity;
        ^
In file included from umbrella.h:519:
In file included from ~/Desktop/Example/platforms/ios/Pods/KontaktSDK/Cocoapods/iOS/KontaktSDK.framework/Headers/KontaktSDK.h:24:
In file included from ~/Desktop/Example/platforms/ios/Pods/KontaktSDK/Cocoapods/iOS/KontaktSDK.framework/Headers/KTKAction.h:23:
~/Desktop/Example/platforms/ios/Pods/KontaktSDK/Cocoapods/iOS/KontaktSDK.framework/Headers/KTKActionContent.h:8:1: error: use of '@import' when modules are disabled
@import Foundation;
^
In file included from umbrella.h:519:
In file included from ~/Desktop/Example/platforms/ios/Pods/KontaktSDK/Cocoapods/iOS/KontaktSDK.framework/Headers/KontaktSDK.h:27:
~/Desktop/Example/platforms/ios/Pods/KontaktSDK/Cocoapods/iOS/KontaktSDK.framework/Headers/KTKBeaconManager.h:8:1: error: use of '@import' when modules are disabled
@import Foundation;
^
~/Desktop/Example/platforms/ios/Pods/KontaktSDK/Cocoapods/iOS/KontaktSDK.framework/Headers/KTKBeaconManager.h:9:1: error: use of '@import' when modules are disabled
@import CoreLocation;
^
In file included from umbrella.h:519:
In file included from ~/Desktop/Example/platforms/ios/Pods/KontaktSDK/Cocoapods/iOS/KontaktSDK.framework/Headers/KontaktSDK.h:27:
In file included from ~/Desktop/Example/platforms/ios/Pods/KontaktSDK/Cocoapods/iOS/KontaktSDK.framework/Headers/KTKBeaconManager.h:11:
~/Desktop/Example/platforms/ios/Pods/KontaktSDK/Cocoapods/iOS/KontaktSDK.framework/Headers/KTKBeaconRegion.h:8:1: error: use of '@import' when modules are disabled
@import Foundation;
^
~/Desktop/Example/platforms/ios/Pods/KontaktSDK/Cocoapods/iOS/KontaktSDK.framework/Headers/KTKBeaconRegion.h:9:1: error: use of '@import' when modules are disabled
@import CoreLocation;
^
~/Desktop/Example/platforms/ios/Pods/KontaktSDK/Cocoapods/iOS/KontaktSDK.framework/Headers/KTKBeaconRegion.h:82:40: error: expected a type
                                major:(CLBeaconMajorValue)major
                                       ^
~/Desktop/Example/platforms/ios/Pods/KontaktSDK/Cocoapods/iOS/KontaktSDK.framework/Headers/KTKBeaconRegion.h:96:40: error: expected a type
                                major:(CLBeaconMajorValue)major
                                       ^
~/Desktop/Example/platforms/ios/Pods/KontaktSDK/Cocoapods/iOS/KontaktSDK.framework/Headers/KTKBeaconRegion.h:97:40: error: expected a type
                                minor:(CLBeaconMinorValue)minor
                                       ^
In file included from umbrella.h:519:
In file included from ~/Desktop/Example/platforms/ios/Pods/KontaktSDK/Cocoapods/iOS/KontaktSDK.framework/Headers/KontaktSDK.h:27:
In file included from ~/Desktop/Example/platforms/ios/Pods/KontaktSDK/Cocoapods/iOS/KontaktSDK.framework/Headers/KTKBeaconManager.h:12:
In file included from ~/Desktop/Example/platforms/ios/Pods/KontaktSDK/Cocoapods/iOS/KontaktSDK.framework/Headers/KTKSecureBeaconRegion.h:9:
~/Desktop/Example/platforms/ios/Pods/KontaktSDK/Cocoapods/iOS/KontaktSDK.framework/Headers/CLBeacon+Kontakt.h:8:1: error: use of '@import' when modules are disabled
@import CoreLocation;
^
~/Desktop/Example/platforms/ios/Pods/KontaktSDK/Cocoapods/iOS/KontaktSDK.framework/Headers/CLBeacon+Kontakt.h:13:12: error: cannot find interface declaration for 'CLBeacon'
@interface CLBeacon (Kontakt)
           ^
In file included from umbrella.h:519:
In file included from ~/Desktop/Example/platforms/ios/Pods/KontaktSDK/Cocoapods/iOS/KontaktSDK.framework/Headers/KontaktSDK.h:27:
In file included from ~/Desktop/Example/platforms/ios/Pods/KontaktSDK/Cocoapods/iOS/KontaktSDK.framework/Headers/KTKBeaconManager.h:12:
~/Desktop/Example/platforms/ios/Pods/KontaktSDK/Cocoapods/iOS/KontaktSDK.framework/Headers/KTKSecureBeaconRegion.h:57:46: error: expected a type
                                      major:(CLBeaconMajorValue)major
                                             ^
~/Desktop/Example/platforms/ios/Pods/KontaktSDK/Cocoapods/iOS/KontaktSDK.framework/Headers/KTKSecureBeaconRegion.h:71:46: error: expected a type
                                      major:(CLBeaconMajorValue)major
                                             ^
~/Desktop/Example/platforms/ios/Pods/KontaktSDK/Cocoapods/iOS/KontaktSDK.framework/Headers/KTKSecureBeaconRegion.h:72:46: error: expected a type
                                      minor:(CLBeaconMinorValue)minor
                                             ^
In file included from umbrella.h:519:
In file included from ~/Desktop/Example/platforms/ios/Pods/KontaktSDK/Cocoapods/iOS/KontaktSDK.framework/Headers/KontaktSDK.h:27:
~/Desktop/Example/platforms/ios/Pods/KontaktSDK/Cocoapods/iOS/KontaktSDK.framework/Headers/KTKBeaconManager.h:75:4: error: expected a type
+ (CLAuthorizationStatus)locationAuthorizationStatus;
   ^
~/Desktop/Example/platforms/ios/Pods/KontaktSDK/Cocoapods/iOS/KontaktSDK.framework/Headers/KTKBeaconManager.h:222:88: error: expected a type
- (void)beaconManager:(KTKBeaconManager*)manager didChangeLocationAuthorizationStatus:(CLAuthorizationStatus)status;
                                                                                       ^
~/Desktop/Example/platforms/ios/Pods/KontaktSDK/Cocoapods/iOS/KontaktSDK.framework/Headers/KTKBeaconManager.h:283:69: error: expected a type
- (void)beaconManager:(KTKBeaconManager*)manager didDetermineState:(CLRegionState)state forRegion:(__kindof KTKBeaconRegion*)region;
                                                                    ^
~/Desktop/Example/platforms/ios/Pods/KontaktSDK/Cocoapods/iOS/KontaktSDK.framework/Headers/KTKBeaconManager.h:301:76: error: unknown type name 'CLBeacon'
- (void)beaconManager:(KTKBeaconManager*)manager didRangeBeacons:(NSArray <CLBeacon *>*)beacons inRegion:(__kindof KTKBeaconRegion*)region;
                                                                           ^
In file included from umbrella.h:519:
In file included from ~/Desktop/Example/platforms/ios/Pods/KontaktSDK/Cocoapods/iOS/KontaktSDK.framework/Headers/KontaktSDK.h:28:
~/Desktop/Example/platforms/ios/Pods/KontaktSDK/Cocoapods/iOS/KontaktSDK.framework/Headers/KTKEddystoneManager.h:8:1: error: use of '@import' when modules are disabled
@import CoreBluetooth;
^
~/Desktop/Example/platforms/ios/Pods/KontaktSDK/Cocoapods/iOS/KontaktSDK.framework/Headers/KTKEddystoneManager.h:9:1: error: use of '@import' when modules are disabled
@import Foundation;
^
~/Desktop/Example/platforms/ios/Pods/KontaktSDK/Cocoapods/iOS/KontaktSDK.framework/Headers/KTKEddystoneManager.h:12:1: error: use of '@import' when modules are disabled
@import UIKit;
^
In file included from umbrella.h:519:
In file included from ~/Desktop/Example/platforms/ios/Pods/KontaktSDK/Cocoapods/iOS/KontaktSDK.framework/Headers/KontaktSDK.h:28:
In file included from ~/Desktop/Example/platforms/ios/Pods/KontaktSDK/Cocoapods/iOS/KontaktSDK.framework/Headers/KTKEddystoneManager.h:15:
~/Desktop/Example/platforms/ios/Pods/KontaktSDK/Cocoapods/iOS/KontaktSDK.framework/Headers/KTKEddystone.h:8:1: error: use of '@import' when modules are disabled
@import Foundation;
^
In file included from umbrella.h:519:
In file included from ~/Desktop/Example/platforms/ios/Pods/KontaktSDK/Cocoapods/iOS/KontaktSDK.framework/Headers/KontaktSDK.h:28:
In file included from ~/Desktop/Example/platforms/ios/Pods/KontaktSDK/Cocoapods/iOS/KontaktSDK.framework/Headers/KTKEddystoneManager.h:15:
In file included from ~/Desktop/Example/platforms/ios/Pods/KontaktSDK/Cocoapods/iOS/KontaktSDK.framework/Headers/KTKEddystone.h:10:
~/Desktop/Example/platforms/ios/Pods/KontaktSDK/Cocoapods/iOS/KontaktSDK.framework/Headers/KTKEddystoneUID.h:8:1: error: use of '@import' when modules are disabled
@import Foundation;
^
In file included from umbrella.h:519:
In file included from ~/Desktop/Example/platforms/ios/Pods/KontaktSDK/Cocoapods/iOS/KontaktSDK.framework/Headers/KontaktSDK.h:28:
In file included from ~/Desktop/Example/platforms/ios/Pods/KontaktSDK/Cocoapods/iOS/KontaktSDK.framework/Headers/KTKEddystoneManager.h:15:
In file included from ~/Desktop/Example/platforms/ios/Pods/KontaktSDK/Cocoapods/iOS/KontaktSDK.framework/Headers/KTKEddystone.h:10:
In file included from ~/Desktop/Example/platforms/ios/Pods/KontaktSDK/Cocoapods/iOS/KontaktSDK.framework/Headers/KTKEddystoneUID.h:10:
~/Desktop/Example/platforms/ios/Pods/KontaktSDK/Cocoapods/iOS/KontaktSDK.framework/Headers/KTKEddystoneFrame.h:8:1: error: use of '@import' when modules are disabled
@import Foundation;
^
In file included from umbrella.h:519:
In file included from ~/Desktop/Example/platforms/ios/Pods/KontaktSDK/Cocoapods/iOS/KontaktSDK.framework/Headers/KontaktSDK.h:28:
In file included from ~/Desktop/Example/platforms/ios/Pods/KontaktSDK/Cocoapods/iOS/KontaktSDK.framework/Headers/KTKEddystoneManager.h:15:
In file included from ~/Desktop/Example/platforms/ios/Pods/KontaktSDK/Cocoapods/iOS/KontaktSDK.framework/Headers/KTKEddystone.h:11:
~/Desktop/Example/platforms/ios/Pods/KontaktSDK/Cocoapods/iOS/KontaktSDK.framework/Headers/KTKEddystoneURL.h:8:1: error: use of '@import' when modules are disabled
@import Foundation;
^
In file included from umbrella.h:519:
In file included from ~/Desktop/Example/platforms/ios/Pods/KontaktSDK/Cocoapods/iOS/KontaktSDK.framework/Headers/KontaktSDK.h:28:
In file included from ~/Desktop/Example/platforms/ios/Pods/KontaktSDK/Cocoapods/iOS/KontaktSDK.framework/Headers/KTKEddystoneManager.h:15:
In file included from ~/Desktop/Example/platforms/ios/Pods/KontaktSDK/Cocoapods/iOS/KontaktSDK.framework/Headers/KTKEddystone.h:12:
~/Desktop/Example/platforms/ios/Pods/KontaktSDK/Cocoapods/iOS/KontaktSDK.framework/Headers/KTKEddystoneTLM.h:8:1: error: use of '@import' when modules are disabled
@import Foundation;
^
In file included from umbrella.h:519:
In file included from ~/Desktop/Example/platforms/ios/Pods/KontaktSDK/Cocoapods/iOS/KontaktSDK.framework/Headers/KontaktSDK.h:28:
In file included from ~/Desktop/Example/platforms/ios/Pods/KontaktSDK/Cocoapods/iOS/KontaktSDK.framework/Headers/KTKEddystoneManager.h:16:
~/Desktop/Example/platforms/ios/Pods/KontaktSDK/Cocoapods/iOS/KontaktSDK.framework/Headers/KTKEddystoneRegion.h:8:1: error: use of '@import' when modules are disabled
@import Foundation;
^
In file included from umbrella.h:519:
In file included from ~/Desktop/Example/platforms/ios/Pods/KontaktSDK/Cocoapods/iOS/KontaktSDK.framework/Headers/KontaktSDK.h:28:
~/Desktop/Example/platforms/ios/Pods/KontaktSDK/Cocoapods/iOS/KontaktSDK.framework/Headers/KTKEddystoneManager.h:40:41: error: unknown type name 'CBManagerState'
@property (nonatomic, assign, readonly) CBManagerState centralState;
                                        ^
In file included from umbrella.h:519:
In file included from ~/Desktop/Example/platforms/ios/Pods/KontaktSDK/Cocoapods/iOS/KontaktSDK.framework/Headers/KontaktSDK.h:29:
~/Desktop/Example/platforms/ios/Pods/KontaktSDK/Cocoapods/iOS/KontaktSDK.framework/Headers/KTKDevicesManager.h:8:1: error: use of '@import' when modules are disabled
@import Foundation;
^
In file included from umbrella.h:519:
In file included from ~/Desktop/Example/platforms/ios/Pods/KontaktSDK/Cocoapods/iOS/KontaktSDK.framework/Headers/KontaktSDK.h:29:
In file included from ~/Desktop/Example/platforms/ios/Pods/KontaktSDK/Cocoapods/iOS/KontaktSDK.framework/Headers/KTKDevicesManager.h:10:
~/Desktop/Example/platforms/ios/Pods/KontaktSDK/Cocoapods/iOS/KontaktSDK.framework/Headers/KTKNearbyDevice.h:8:1: error: use of '@import' when modules are disabled
@import Foundation;
^
~/Desktop/Example/platforms/ios/Pods/KontaktSDK/Cocoapods/iOS/KontaktSDK.framework/Headers/KTKNearbyDevice.h:9:1: error: use of '@import' when modules are disabled
@import CoreBluetooth;
^
~/Desktop/Example/platforms/ios/Pods/KontaktSDK/Cocoapods/iOS/KontaktSDK.framework/Headers/KTKNearbyDevice.h:99:41: error: unknown type name 'CBPeripheral'
@property (nonatomic, readonly, strong) CBPeripheral *peripheral;
                                        ^
~/Desktop/Example/platforms/ios/Pods/KontaktSDK/Cocoapods/iOS/KontaktSDK.framework/Headers/KTKNearbyDevice.h:99:1: error: property with 'retain (or strong)' attribute must be of object type
@property (nonatomic, readonly, strong) CBPeripheral *peripheral;
^
In file included from umbrella.h:519:
In file included from ~/Desktop/Example/platforms/ios/Pods/KontaktSDK/Cocoapods/iOS/KontaktSDK.framework/Headers/KontaktSDK.h:29:
~/Desktop/Example/platforms/ios/Pods/KontaktSDK/Cocoapods/iOS/KontaktSDK.framework/Headers/KTKDevicesManager.h:50:41: error: unknown type name 'CBManagerState'
@property (nonatomic, assign, readonly) CBManagerState centralState;
                                        ^
In file included from umbrella.h:519:
In file included from ~/Desktop/Example/platforms/ios/Pods/KontaktSDK/Cocoapods/iOS/KontaktSDK.framework/Headers/KontaktSDK.h:30:
~/Desktop/Example/platforms/ios/Pods/KontaktSDK/Cocoapods/iOS/KontaktSDK.framework/Headers/KTKDeviceConnection.h:8:1: error: use of '@import' when modules are disabled
@import Foundation;
^
~/Desktop/Example/platforms/ios/Pods/KontaktSDK/Cocoapods/iOS/KontaktSDK.framework/Headers/KTKDeviceConnection.h:9:1: error: use of '@import' when modules are disabled
@import CoreBluetooth;
^
~/Desktop/Example/platforms/ios/Pods/KontaktSDK/Cocoapods/iOS/KontaktSDK.framework/Headers/KTKDeviceConnection.h:10:1: error: use of '@import' when modules are disabled
@import CoreLocation;
^
In file included from umbrella.h:646:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS10.2.sdk/usr/include/os/log.h:35:2: error: using os/log.h requires Xcode 8 or later
#error using os/log.h requires Xcode 8 or later
 ^

** BUILD FAILED **

The following build commands failed:
    PhaseScriptExecution NativeScript\ PreBuild ~/Library/Developer/Xcode/DerivedData/Example-dgxbgkhzawhatuciiawgszoqaqex/Build/Intermediates/Example.build/Debug-iphoneos/Example.build/Script-C97FD7AC1ADE5369004DB2A4.sh
(1 failure)
Command xcodebuild failed with exit code 65
# run ios

┌─────────────────────────────────────────────┬─────────────────────────────────────────────────────────────────┐
│ Usage                                       │ Synopsis                                                        │
│ Run on all connected devices                │ $ tns run ios [--release] [--justlaunch]                        │
│ Run on a selected connected device          │ $ tns run ios [--device <Device ID>] [--release] [--justlaunch] │
│ Start an emulator and run the app inside it │ $ tns run ios --emulator [<Emulator Options>] [--release]       │
└─────────────────────────────────────────────┴─────────────────────────────────────────────────────────────────┘

Runs your project on a connected iOS device or in the iOS Simulator, if configured. This is shorthand for prepare, build and deploy. While your app is running, prints the output from the application in the console and watches for changes in your code. Once a change is detected, it synchronizes the change with all selected devices and restarts/refreshes the application.

IMPORTANT: Before building for iOS device, verify that you have configured a valid pair of certificate and provisioning profile on your OS X system. 

### Options

    * --no-watch - If set, changes in your code will not be reflected during the execution of this command.
    * --device - Specifies a connected device on which to run the app.
    * --emulator - If set, runs the app in a native emulator for the target platform, if configured. When set, you can also set any other valid combination of emulator options as listed by $ tns help emulate ios. You cannot use --device and --emulator simultaneously.
    * --release - If set, produces a release build. Otherwise, produces a debug build.
    * --justlaunch - If set, does not print the application output in the console.
    * --clean - If set, forces rebuilding the native application.

### Attributes

    * <Device ID> is the index or name of the target device as listed by $ tns device ios
    * <Emulator Options> is any valid combination of options as listed by $ tns help emulate ios

$ 
mn-martin commented 7 years ago

My attempts to fix this:

... unfortunately with no success

Modifying the Podfile

platform :ios, '8.0'
use_frameworks!

pod 'KontaktSDK', '1.4.2'

Adding a build.xcconfig

OTHER_LDFLAGS = $(inherited) -framework "Foundation" -framework "UIKit" -framework "CoreLocation" -framework "CoreBluetooth"

Setting Enable Modules (C and Objective-C) to YES Xcode

Link Frameworks Automatically to YES in Xcode

juneil commented 7 years ago

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

mn-martin commented 7 years ago

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

mn-martin commented 7 years ago

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

juneil commented 7 years ago

@mn-martin Good to know. So the native library KontaktSDK 1.4.2 is not working with latest xcode version ?

mn-martin commented 7 years ago

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