Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Trouble integrating latest BraintreeDropIn pod to NativeScript app #120

Open
felixkrautschuk opened this issue Jul 21, 2021 · 4 comments
Open

Comments

@felixkrautschuk
Copy link

I am trying to update the native dependencies within the nativescript-braintree plugin. While everything works as expected on Android side, I am struggling to make the ios build process working.

The migration guide says:

The Braintree iOS v5 SDK requires Xcode 12+, Swift 5.1+ and a minimum deployment target of iOS 12.0.
If your application contains Objective-C code, the Enable Modules build setting must be set to YES.

I am adding the following to App_Resources/iOS/Podfile:

platform :ios, '12.0'
pod 'BraintreeDropIn', '9.1.0'

And I am adding this to App_Resources/iOS/build.xcconfig:

IPHONEOS_DEPLOYMENT_TARGET = 12.0;
ENABLE_MODULES = YES;

When using version 8.x.y of the BraintreeDropIn pod, everything works as expected. Also when using the latest core pod of the Braintree SDK (Braintree pod version 5.4.2), the build process works as expected, so something is going wrong with the BraintreeDropIn particularly.

I cannot see any issues on Github so I think this is somehow related to NativeScript?

The build log looks like this (only snippets, the whole log file is provided below):

Xcode build...
./.build_env_vars.sh: line 446: declare: UID: readonly variable
NSLD: Swift bridging header '*-Swift.h' not found under '/Users/felixkrautschuk/Library/Developer/Xcode/DerivedData/nsbraintreeiosissue-chekcvderpazmlcjkxssmwilmgen/Build/Intermediates.noindex/nsbraintreeiosissue.build/Debug-iphonesimulator/nsbraintreeiosissue.build/Objects-normal/x86_64'
Generating metadata...~/Downloads/ns-braintree-ios-issue/platforms/ios/internal/metadata-generator-x86_64/bin ~/Downloads/ns-braintree-ios-issue/platforms/ios
Python version: 2.7.16 (default, May 8 2021, 11:48:02)
[GCC Apple LLVM 12.0.5 (clang-1205.0.19.59.6) [+internal-os, ptrauth-isa=deploy
Generating metadata for x86_64
Metadata Generator Arguments:
./objc-metadata-generator -verbose -output-bin /Users/felixkrautschuk/Downloads/ns-braintree-ios-issue/platforms/ios/build/Debug-iphonesimulator/metadata-x86_64.bin -output-umbrella /Users/felixkrautschuk/Downloads/ns-braintree-ios-issue/platforms/ios/build/Debug-iphonesimulator/umbrella-x86_64.h -docset-path /Users/felixkrautschuk/Library/Developer/Shared/Documentation/DocSets/com.apple.adc.documentation.iOS.docset Xclang -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.5.sdk -mios-simulator-version-min=12.0 -std=gnu99 -target x86_64-apple-ios13.0-macabi -I/Users/felixkrautschuk/Downloads/ns-braintree-ios-issue/platforms/ios/build/Debug-iphonesimulator/include -I/Users/felixkrautschuk/Downloads/ns-braintree-ios-issue/platforms/ios/build/Debug-iphonesimulator/Braintree/Braintree.framework/Headers -I/Users/felixkrautschuk/Downloads/ns-braintree-ios-issue/platforms/ios/build/Debug-iphonesimulator/BraintreeDropIn/BraintreeDropIn.framework/Headers -I/Users/felixkrautschuk/Downloads/ns-braintree-ios-issue/platforms/ios/internal/Swift-Modules -I/Users/felixkrautschuk/Downloads/ns-braintree-ios-issue/platforms/ios/internal -I/Users/felixkrautschuk/Downloads/ns-braintree-ios-issue/platforms/ios/../../App_Resources/iOS/src -I/Users/felixkrautschuk/Downloads/ns-braintree-ios-issue/platforms/ios/../../node_modules/@nativescript/core/platforms/ios/src -F/Users/felixkrautschuk/Downloads/ns-braintree-ios-issue/platforms/ios/build/Debug-iphonesimulator -F/Users/felixkrautschuk/Downloads/ns-braintree-ios-issue/platforms/ios/internal/ -F/Users/felixkrautschuk/Downloads/ns-braintree-ios-issue/platforms/ios/build/Debug-iphonesimulator -F/Users/felixkrautschuk/Downloads/ns-braintree-ios-issue/platforms/ios/build/Debug-iphonesimulator/Braintree -F/Users/felixkrautschuk/Downloads/ns-braintree-ios-issue/platforms/ios/build/Debug-iphonesimulator/BraintreeDropIn -F/Users/felixkrautschuk/Downloads/ns-braintree-ios-issue/platforms/ios/Pods/Braintree/Frameworks -F/Users/felixkrautschuk/Downloads/ns-braintree-ios-issue/platforms/ios/build/Debug-iphonesimulator/XCFrameworkIntermediates/CardinalMobile -F/Users/felixkrautschuk/Downloads/ns-braintree-ios-issue/platforms/ios/build/Debug-iphonesimulator/XCFrameworkIntermediates/PPRiskMagnes -F/Users/felixkrautschuk/Downloads/ns-braintree-ios-issue/platforms/ios/../../node_modules/@nativescript/core/platforms/ios -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", "-D__NATIVESCRIPT_METADATA_GENERATOR=1", "-isysroot", "/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.5.sdk", "-mios-simulator-version-min=12.0", "-std=gnu99", "-target", "x86_64-apple-ios13.0-macabi", "-I/Users/felixkrautschuk/Downloads/ns-braintree-ios-issue/platforms/ios/build/Debug-iphonesimulator/include", "-I/Users/felixkrautschuk/Downloads/ns-braintree-ios-issue/platforms/ios/build/Debug-iphonesimulator/Braintree/Braintree.framework/Headers", "-I/Users/felixkrautschuk/Downloads/ns-braintree-ios-issue/platforms/ios/build/Debug-iphonesimulator/BraintreeDropIn/BraintreeDropIn.framework/Headers", "-I/Users/felixkrautschuk/Downloads/ns-braintree-ios-issue/platforms/ios/internal/Swift-Modules", "-I/Users/felixkrautschuk/Downloads/ns-braintree-ios-issue/platforms/ios/internal", "-I/Users/felixkrautschuk/Downloads/ns-braintree-ios-issue/platforms/ios/../../App_Resources/iOS/src", "-I/Users/felixkrautschuk/Downloads/ns-braintree-ios-issue/platforms/ios/../../node_modules/@nativescript/core/platforms/ios/src", "-F/Users/felixkrautschuk/Downloads/ns-braintree-ios-issue/platforms/ios/build/Debug-iphonesimulator", "-F/Users/felixkrautschuk/Downloads/ns-braintree-ios-issue/platforms/ios/internal/", "-F/Users/felixkrautschuk/Downloads/ns-braintree-ios-issue/platforms/ios/build/Debug-iphonesimulator", "-F/Users/felixkrautschuk/Downloads/ns-braintree-ios-issue/platforms/ios/build/Debug-iphonesimulator/Braintree", "-F/Users/felixkrautschuk/Downloads/ns-braintree-ios-issue/platforms/ios/build/Debug-iphonesimulator/BraintreeDropIn", "-F/Users/felixkrautschuk/Downloads/ns-braintree-ios-issue/platforms/ios/Pods/Braintree/Frameworks", "-F/Users/felixkrautschuk/Downloads/ns-braintree-ios-issue/platforms/ios/build/Debug-iphonesimulator/XCFrameworkIntermediates/CardinalMobile", "-F/Users/felixkrautschuk/Downloads/ns-braintree-ios-issue/platforms/ios/build/Debug-iphonesimulator/XCFrameworkIntermediates/PPRiskMagnes", "-F/Users/felixkrautschuk/Downloads/ns-braintree-ios-issue/platforms/ios/../../node_modules/@nativescript/core/platforms/ios", "-DCOCOAPODS=1", "-DDEBUG=1",
Saving metadata generation's stderr stream to: /Users/felixkrautschuk/Downloads/ns-braintree-ios-issue/platforms/ios/build/Debug-iphonesimulator/metadata-generation-stderr-x86_64.txt
Error: Unable to generate metadata for x86_64.
Metadata Generator Arguments:
./objc-metadata-generator -verbose -output-bin /Users/felixkrautschuk/Downloads/ns-braintree-ios-issue/platforms/ios/build/Debug-iphonesimulator/metadata-x86_64.bin -output-umbrella /Users/felixkrautschuk/Downloads/ns-braintree-ios-issue/platforms/ios/build/Debug-iphonesimulator/umbrella-x86_64.h -docset-path /Users/felixkrautschuk/Library/Developer/Shared/Documentation/DocSets/com.apple.adc.documentation.iOS.docset Xclang -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.5.sdk -mios-simulator-version-min=12.0 -std=gnu99 -target x86_64-apple-ios13.0-macabi -I/Users/felixkrautschuk/Downloads/ns-braintree-ios-issue/platforms/ios/build/Debug-iphonesimulator/include -I/Users/felixkrautschuk/Downloads/ns-braintree-ios-issue/platforms/ios/build/Debug-iphonesimulator/Braintree/Braintree.framework/Headers -I/Users/felixkrautschuk/Downloads/ns-braintree-ios-issue/platforms/ios/build/Debug-iphonesimulator/BraintreeDropIn/BraintreeDropIn.framework/Headers -I/Users/felixkrautschuk/Downloads/ns-braintree-ios-issue/platforms/ios/internal/Swift-Modules -I/Users/felixkrautschuk/Downloads/ns-braintree-ios-issue/platforms/ios/internal -I/Users/felixkrautschuk/Downloads/ns-braintree-ios-issue/platforms/ios/../../App_Resources/iOS/src -I/Users/felixkrautschuk/Downloads/ns-braintree-ios-issue/platforms/ios/../../node_modules/@nativescript/core/platforms/ios/src -F/Users/felixkrautschuk/Downloads/ns-braintree-ios-issue/platforms/ios/build/Debug-iphonesimulator -F/Users/felixkrautschuk/Downloads/ns-braintree-ios-issue/platforms/ios/internal/ -F/Users/felixkrautschuk/Downloads/ns-braintree-ios-issue/platforms/ios/build/Debug-iphonesimulator -F/Users/felixkrautschuk/Downloads/ns-braintree-ios-issue/platforms/ios/build/Debug-iphonesimulator/Braintree -F/Users/felixkrautschuk/Downloads/ns-braintree-ios-issue/platforms/ios/build/Debug-iphonesimulator/BraintreeDropIn -F/Users/felixkrautschuk/Downloads/ns-braintree-ios-issue/platforms/ios/Pods/Braintree/Frameworks -F/Users/felixkrautschuk/Downloads/ns-braintree-ios-issue/platforms/ios/build/Debug-iphonesimulator/XCFrameworkIntermediates/CardinalMobile -F/Users/felixkrautschuk/Downloads/ns-braintree-ios-issue/platforms/ios/build/Debug-iphonesimulator/XCFrameworkIntermediates/PPRiskMagnes -F/Users/felixkrautschuk/Downloads/ns-braintree-ios-issue/platforms/ios/../../node_modules/@nativescript/core/platforms/ios -DCOCOAPODS=1 -DDEBUG=1
clang version 8.0.0 (tags/RELEASE_800/final)
Target: x86_64-apple-ios13.0-macabi
Thread model: posix
InstalledDir:
warning: overriding '-mios-simulator-version-min=12.0' option with '--target=x86_64-apple-ios13.0-macabi' [-Woverriding-t-option]
clang Invocation:
"clang-tool" "-cc1" "-triple" "x86_64-apple-ios13.0.0-simulator" "-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" "-munwind-tables" "-target-sdk-version=14.5" "-target-cpu" "core2" "-dwarf-column-info" "-debugger-tuning=lldb" "-ggnu-pubnames" "-target-linker-version" "507.6" "-v" "-resource-dir" "lib/clang/8.0.0" "-isysroot" "/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.5.sdk" "-D" "__NATIVESCRIPT_METADATA_GENERATOR=1" "-I" "/Users/felixkrautschuk/Downloads/ns-braintree-ios-issue/platforms/ios/build/Debug-iphonesimulator/include" "-I" "/Users/felixkrautschuk/Downloads/ns-braintree-ios-issue/platforms/ios/build/Debug-iphonesimulator/Braintree/Braintree.framework/Headers" "-I" "/Users/felixkrautschuk/Downloads/ns-braintree-ios-issue/platforms/ios/build/Debug-iphonesimulator/BraintreeDropIn/BraintreeDropIn.framework/Headers" "-I" "/Users/felixkrautschuk/Downloads/ns-braintree-ios-issue/platforms/ios/internal/Swift-Modules" "-I" "/Users/felixkrautschuk/Downloads/ns-braintree-ios-issue/platforms/ios/internal" "-I" "/Users/felixkrautschuk/Downloads/ns-braintree-ios-issue/platforms/ios/../../App_Resources/iOS/src" "-I" "/Users/felixkrautschuk/Downloads/ns-braintree-ios-issue/platforms/ios/../../node_modules/@nativescript/core/platforms/ios/src" "-F/Users/felixkrautschuk/Downloads/ns-braintree-ios-issue/platforms/ios/build/Debug-iphonesimulator" "-F/Users/felixkrautschuk/Downloads/ns-braintree-ios-issue/platforms/ios/internal/" "-F/Users/felixkrautschuk/Downloads/ns-braintree-ios-issue/platforms/ios/build/Debug-iphonesimulator" "-F/Users/felixkrautschuk/Downloads/ns-braintree-ios-issue/platforms/ios/build/Debug-iphonesimulator/Braintree" "-F/Users/felixkrautschuk/Downloads/ns-braintree-ios-issue/platforms/ios/build/Debug-iphonesimulator/BraintreeDropIn" "-F/Users/felixkrautschuk/Downloads/ns-braintree-ios-issue/platforms/ios/Pods/Braintree/Frameworks" "-F/Users/felixkrautschuk/Downloads/ns-braintree-ios-issue/platforms/ios/build/Debug-iphonesimulator/XCFrameworkIntermediates/CardinalMobile" "-F/Users/felixkrautschuk/Downloads/ns-braintree-ios-issue/platforms/ios/build/Debug-iphonesimulator/XCFrameworkIntermediates/PPRiskMagnes" "-F/Users/felixkrautschuk/Downloads/ns-braintree-ios-issue/platforms/ios/../../node_modules/@nativescript/core/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" "/Users/felixkrautschuk/Downloads/ns-braintree-ios-issue/platforms/ios/internal/metadata-generator-x86_64/bin" "-ferror-limit" "0" "-fmessage-length" "0" "-stack-protector" "1" "-fblocks" "-fencode-extended-block-signature" "-fimplicit-module-maps" "-fregister-global-dtors-with-atexit" "-fobjc-runtime=ios-13.0.0" "-fobjc-exceptions" "-fexceptions" "-fmax-type-align=16" "-fdiagnostics-show-option" "-x" "objective-c" "umbrella.h"

ignoring nonexistent directory "/Users/felixkrautschuk/Downloads/ns-braintree-ios-issue/platforms/ios/build/Debug-iphonesimulator/include"
ignoring nonexistent directory "/Users/felixkrautschuk/Downloads/ns-braintree-ios-issue/platforms/ios/internal/Swift-Modules"
ignoring nonexistent directory "/Users/felixkrautschuk/Downloads/ns-braintree-ios-issue/platforms/ios/../../App_Resources/iOS/src"
ignoring nonexistent directory "/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.5.sdk/usr/local/include"
ignoring nonexistent directory "/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.5.sdk/Library/Frameworks"
ignoring duplicate directory "/Users/felixkrautschuk/Downloads/ns-braintree-ios-issue/platforms/ios/build/Debug-iphonesimulator"
#include "..." search starts here:
#include <...> search starts here:
/Users/felixkrautschuk/Downloads/ns-braintree-ios-issue/platforms/ios/build/Debug-iphonesimulator/Braintree/Braintree.framework/Headers
/Users/felixkrautschuk/Downloads/ns-braintree-ios-issue/platforms/ios/build/Debug-iphonesimulator/BraintreeDropIn/BraintreeDropIn.framework/Headers
/Users/felixkrautschuk/Downloads/ns-braintree-ios-issue/platforms/ios/internal
/Users/felixkrautschuk/Downloads/ns-braintree-ios-issue/platforms/ios/../../node_modules/@nativescript/core/platforms/ios/src
/Users/felixkrautschuk/Downloads/ns-braintree-ios-issue/platforms/ios/build/Debug-iphonesimulator (framework directory)
/Users/felixkrautschuk/Downloads/ns-braintree-ios-issue/platforms/ios/internal (framework directory)
/Users/felixkrautschuk/Downloads/ns-braintree-ios-issue/platforms/ios/build/Debug-iphonesimulator/Braintree (framework directory)
/Users/felixkrautschuk/Downloads/ns-braintree-ios-issue/platforms/ios/build/Debug-iphonesimulator/BraintreeDropIn (framework directory)
/Users/felixkrautschuk/Downloads/ns-braintree-ios-issue/platforms/ios/Pods/Braintree/Frameworks (framework directory)
/Users/felixkrautschuk/Downloads/ns-braintree-ios-issue/platforms/ios/build/Debug-iphonesimulator/XCFrameworkIntermediates/CardinalMobile (framework directory)
/Users/felixkrautschuk/Downloads/ns-braintree-ios-issue/platforms/ios/build/Debug-iphonesimulator/XCFrameworkIntermediates/PPRiskMagnes (framework directory)
/Users/felixkrautschuk/Downloads/ns-braintree-ios-issue/platforms/ios/../../node_modules/@nativescript/core/platforms/ios (framework directory)
lib/clang/8.0.0/include
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.5.sdk/usr/include
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.5.sdk/System/Library/Frameworks (framework directory)
End of search list.
clang version 8.0.0 (tags/RELEASE_800/final)
Target: x86_64-apple-ios13.0-macabi
Thread model: posix
InstalledDir:
warning: overriding '-mios-simulator-version-min=12.0' option with '--target=x86_64-apple-ios13.0-macabi' [-Woverriding-t-option]
clang Invocation:
"objc-metadata-generator" "-cc1" "-triple" "x86_64-apple-ios13.0.0-simulator" "-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" "-munwind-tables" "-target-sdk-version=14.5" "-target-cpu" "core2" "-dwarf-column-info" "-debugger-tuning=lldb" "-ggnu-pubnames" "-target-linker-version" "507.6" "-v" "-resource-dir" "lib/clang/8.0.0" "-isysroot" "/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.5.sdk" "-idirafter" "/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.5.sdk/usr/include" "-idirafter" "/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.5.sdk/usr/include/dispatch" "-idirafter" "/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.5.sdk/usr/include/libxml" "-idirafter" "lib/clang/8.0.0/include" "-idirafter" "/Users/felixkrautschuk/Downloads/ns-braintree-ios-issue/platforms/ios/../../node_modules/@nativescript/core/platforms/ios/src" "-idirafter" "/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.5.sdk/usr/include/mach-o" "-idirafter" "/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.5.sdk/usr/include/unicode" "-idirafter" "/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.5.sdk/usr/include/objc" "-idirafter" "/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.5.sdk/usr/include/simd" "-idirafter" "/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.5.sdk/usr/include/CommonCrypto" "-idirafter" "/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.5.sdk/usr/include/AppleArchive" "-D" "__NATIVESCRIPT_METADATA_GENERATOR=1" "-I" "/Users/felixkrautschuk/Downloads/ns-braintree-ios-issue/platforms/ios/build/Debug-iphonesimulator/include" "-I" "/Users/felixkrautschuk/Downloads/ns-braintree-ios-issue/platforms/ios/build/Debug-iphonesimulator/Braintree/Braintree.framework/Headers" "-I" "/Users/felixkrautschuk/Downloads/ns-braintree-ios-issue/platforms/ios/build/Debug-iphonesimulator/BraintreeDropIn/BraintreeDropIn.framework/Headers" "-I" "/Users/felixkrautschuk/Downloads/ns-braintree-ios-issue/platforms/ios/internal/Swift-Modules" "-I" "/Users/felixkrautschuk/Downloads/ns-braintree-ios-issue/platforms/ios/internal" "-I" "/Users/felixkrautschuk/Downloads/ns-braintree-ios-issue/platforms/ios/../../App_Resources/iOS/src" "-I" "/Users/felixkrautschuk/Downloads/ns-braintree-ios-issue/platforms/ios/../../node_modules/@nativescript/core/platforms/ios/src" "-F/Users/felixkrautschuk/Downloads/ns-braintree-ios-issue/platforms/ios/build/Debug-iphonesimulator" "-F/Users/felixkrautschuk/Downloads/ns-braintree-ios-issue/platforms/ios/internal/" "-F/Users/felixkrautschuk/Downloads/ns-braintree-ios-issue/platforms/ios/build/Debug-iphonesimulator" "-F/Users/felixkrautschuk/Downloads/ns-braintree-ios-issue/platforms/ios/build/Debug-iphonesimulator/Braintree" "-F/Users/felixkrautschuk/Downloads/ns-braintree-ios-issue/platforms/ios/build/Debug-iphonesimulator/BraintreeDropIn" "-F/Users/felixkrautschuk/Downloads/ns-braintree-ios-issue/platforms/ios/Pods/Braintree/Frameworks" "-F/Users/felixkrautschuk/Downloads/ns-braintree-ios-issue/platforms/ios/build/Debug-iphonesimulator/XCFrameworkIntermediates/CardinalMobile" "-F/Users/felixkrautschuk/Downloads/ns-braintree-ios-issue/platforms/ios/build/Debug-iphonesimulator/XCFrameworkIntermediates/PPRiskMagnes" "-F/Users/felixkrautschuk/Downloads/ns-braintree-ios-issue/platforms/ios/../../node_modules/@nativescript/core/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" "/Users/felixkrautschuk/Downloads/ns-braintree-ios-issue/platforms/ios/internal/metadata-generator-x86_64/bin" "-ferror-limit" "0" "-fmessage-length" "0" "-stack-protector" "1" "-fblocks" "-fencode-extended-block-signature" "-fimplicit-module-maps" "-fregister-global-dtors-with-atexit" "-fobjc-runtime=ios-13.0.0" "-fobjc-exceptions" "-fexceptions" "-fmax-type-align=16" "-fdiagnostics-show-option" "-x" "objective-c" "umbrella.h"

clang -cc1 version 8.0.0 based upon LLVM 8.0.0 default target x86_64-apple-darwin20.5.0
ignoring nonexistent directory "/Users/felixkrautschuk/Downloads/ns-braintree-ios-issue/platforms/ios/build/Debug-iphonesimulator/include"
ignoring nonexistent directory "/Users/felixkrautschuk/Downloads/ns-braintree-ios-issue/platforms/ios/internal/Swift-Modules"
ignoring nonexistent directory "/Users/felixkrautschuk/Downloads/ns-braintree-ios-issue/platforms/ios/../../App_Resources/iOS/src"
ignoring nonexistent directory "/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.5.sdk/usr/local/include"
ignoring nonexistent directory "/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.5.sdk/Library/Frameworks"
ignoring duplicate directory "/Users/felixkrautschuk/Downloads/ns-braintree-ios-issue/platforms/ios/build/Debug-iphonesimulator"
ignoring duplicate directory "/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.5.sdk/usr/include"
ignoring duplicate directory "lib/clang/8.0.0/include"
ignoring duplicate directory "/Users/felixkrautschuk/Downloads/ns-braintree-ios-issue/platforms/ios/../../node_modules/@nativescript/core/platforms/ios/src"
as it is a non-system directory that duplicates a system directory
#include "..." search starts here:
#include <...> search starts here:
/Users/felixkrautschuk/Downloads/ns-braintree-ios-issue/platforms/ios/build/Debug-iphonesimulator/Braintree/Braintree.framework/Headers
/Users/felixkrautschuk/Downloads/ns-braintree-ios-issue/platforms/ios/build/Debug-iphonesimulator/BraintreeDropIn/BraintreeDropIn.framework/Headers
/Users/felixkrautschuk/Downloads/ns-braintree-ios-issue/platforms/ios/internal
/Users/felixkrautschuk/Downloads/ns-braintree-ios-issue/platforms/ios/build/Debug-iphonesimulator (framework directory)
/Users/felixkrautschuk/Downloads/ns-braintree-ios-issue/platforms/ios/internal (framework directory)
/Users/felixkrautschuk/Downloads/ns-braintree-ios-issue/platforms/ios/build/Debug-iphonesimulator/Braintree (framework directory)
/Users/felixkrautschuk/Downloads/ns-braintree-ios-issue/platforms/ios/build/Debug-iphonesimulator/BraintreeDropIn (framework directory)
/Users/felixkrautschuk/Downloads/ns-braintree-ios-issue/platforms/ios/Pods/Braintree/Frameworks (framework directory)
/Users/felixkrautschuk/Downloads/ns-braintree-ios-issue/platforms/ios/build/Debug-iphonesimulator/XCFrameworkIntermediates/CardinalMobile (framework directory)
/Users/felixkrautschuk/Downloads/ns-braintree-ios-issue/platforms/ios/build/Debug-iphonesimulator/XCFrameworkIntermediates/PPRiskMagnes (framework directory)
/Users/felixkrautschuk/Downloads/ns-braintree-ios-issue/platforms/ios/../../node_modules/@nativescript/core/platforms/ios (framework directory)
lib/clang/8.0.0/include
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.5.sdk/usr/include
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.5.sdk/System/Library/Frameworks (framework directory)
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.5.sdk/usr/include/dispatch
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.5.sdk/usr/include/libxml
/Users/felixkrautschuk/Downloads/ns-braintree-ios-issue/platforms/ios/../../node_modules/@nativescript/core/platforms/ios/src
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.5.sdk/usr/include/mach-o
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.5.sdk/usr/include/unicode
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.5.sdk/usr/include/objc
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.5.sdk/usr/include/simd
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.5.sdk/usr/include/CommonCrypto
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.5.sdk/usr/include/AppleArchive
End of search list.
In file included from umbrella.h:71:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.5.sdk/usr/include/dlfcn.h:64:37: warning: unknown platform 'driverkit' in availability macro [-Wavailability]
extern int dlclose(void * __handle) __DYLDDL_DRIVERKIT_UNAVAILABLE;
^
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.5.sdk/usr/include/dlfcn.h:44:41: note: expanded from macro '__DYLDDL_DRIVERKIT_UNAVAILABLE'
#define __DYLDDL_DRIVERKIT_UNAVAILABLE __API_UNAVAILABLE(driverkit)
^
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.5.sdk/usr/include/Availability.h:419:190: note: expanded from macro '__API_UNAVAILABLE'
#define __API_UNAVAILABLE(...) __API_UNAVAILABLE_GET_MACRO(VA_ARGS,__API_UNAVAILABLE7,__API_UNAVAILABLE6,__API_UNAVAILABLE5,__API_UNAVAILABLE4,__API_UNAVAILABLE3,__API_UNAVAILABLE2,__API_UNAVAILABLE1, 0)(VA_ARGS) ^
In file included from umbrella.h:522:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator.sdk/System/Library/Frameworks/MetalPerformanceShaders.framework/Headers/MetalPerformanceShaders.h:12:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.5.sdk/System/Library/Frameworks/MetalPerformanceShaders.framework/Frameworks/MPSCore.framework/Headers/MPSCore.h:14:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.5.sdk/System/Library/Frameworks/MetalPerformanceShaders.framework/Frameworks/MPSCore.framework/Headers/MPSCoreTypes.h:241:23: warning: unknown platform 'macCatalyst' in availability macro [-Wavailability]
MPSDataTypeInt8 MPS_ENUM_AVAILABLE_STARTING( macos(10.13), ios(10.0), macCatalyst(13.0), tvos(10.0)) = MPSDataTypeSignedBit | 8,
^
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.5.sdk/System/Library/Frameworks/MetalPerformanceShaders.framework/Frameworks/MPSCore.framework/Headers/MPSCoreTypes.h:47:65: note: expanded from macro 'MPS_ENUM_AVAILABLE_STARTING'

define MPS_ENUM_AVAILABLE_STARTING(...) __API_AVAILABLE(VA_ARGS)

...

verbose: Included protocol_copyProtocolList from ObjectiveC.runtime
verbose: Included objc_allocateProtocol from ObjectiveC.runtime
verbose: Included objc_setAssociatedObject from ObjectiveC.runtime
verbose: Included objc_getAssociatedObject from ObjectiveC.runtime
verbose: Included objc_removeAssociatedObjects from ObjectiveC.runtime
verbose: Included CCADirectoryServerIDVisa01 from CardinalMobile.DirectoryServerIDConst
verbose: Included CCADirectoryServerIDVisa02 from CardinalMobile.DirectoryServerIDConst
verbose: Included CCADirectoryServerIDVisa03 from CardinalMobile.DirectoryServerIDConst
verbose: Included CCADirectoryServerIDVisa04 from CardinalMobile.DirectoryServerIDConst
verbose: Included CCADirectoryServerIDMasterCard from CardinalMobile.DirectoryServerIDConst
Command Ld failed with a nonzero exit code
note: Using new build system
note: Building targets in parallel
note: Using codesigning identity override:
note: Planning build
note: Analyzing workspace
note: Constructing build description
note: Build preparation complete
note: Removed stale file '/Users/felixkrautschuk/Library/Developer/Xcode/DerivedData/nsbraintreeiosissue-chekcvderpazmlcjkxssmwilmgen/Build/Intermediates.noindex/nsbraintreeiosissue.build/Debug-iphonesimulator/nsbraintreeiosissue.build/Script-81DAB418CDA54F5900EA768A.sh'
Unable to apply changes on device: 27EB8DF8-CC9D-4747-A7CB-95DF413D358F. Error is: Command xcodebuild failed with exit code 65.

The whole log (about 5 MB) is available here:
build_log.txt

Sample app to reproduce:
ns-braintree-ios-issue.zip

@felixkrautschuk
Copy link
Author

I tested multiple versions of the ios runtime, tns-ios 6.5.4 to @nativescript/ios 7.2.0, but it make sno difference.
Any help would be appreciated

@felixkrautschuk
Copy link
Author

WHen creating a native ios xcode project and adding the BraintreeDropIn pod there, the project is built correctly so this issue seems to be caused by nativescript in some way

@felixkrautschuk
Copy link
Author

Is there any advice on this? The issue still exists using NativeScript 8.

@felixkrautschuk
Copy link
Author

I updated the demo app to use latest NS 8.3 dependencies and the issue still persists.

ns-braintree-ios-issue.zip

It seems to be caused be caused by a subdependency of the BraintreeDropIn pod:
pod 'Braintree/ThreeDSecure', '5.14.0'

The problem seems to be the following part form the error log:

NSLD: Swift bridging header '*-Swift.h' not found under '/Users/felixkrautschuk/Library/Developer/Xcode/DerivedData/nsbraintreeiosissue-chekcvderpazmlcjkxssmwilmgen/Build/Intermediates.noindex/nsbraintreeiosissue.build/Debug-iphonesimulator/nsbraintreeiosissue.build/Objects-normal/x86_64'

But due to lag of knowledge in native iOS development, I have no idea if this should be fixed in the NativeScript framework or by Braintree. But I could not find any similar bug reports in the Braintree repo or in other app frameworks, so I guess this is related to NativeScript.

So any help is heavily appreciated!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant