paysafegroup / paysafe_sdk_ios Goto Github PK
View Code? Open in Web Editor NEWPaysafe iOS SDK
License: MIT License
Paysafe iOS SDK
License: MIT License
Could you give any integration alternative other than adding the binary to the repo or use CocoaPods? Maybe SPM or Carthage? Thanks.
I took the latest version in the master branch of the repo and built the IOS_SDK project. I then tried to build the test project TestMerchAppExample_Obj-C and got the following errors:
clang: error: linker command failed with exit code 1 (use -v to see invocation)
There were also errors with the tests:
/Users/user/Documents/paysafe_sdk_ios-master/paysafe_sdk_ios-master/Examples/TestMerchAppExample_Obj-C/TestMerchAppExample_Obj-CTests/TestMerchAppExample_Obj_CTests.m:11:1: Expected identifier or '('
/Users/user/Documents/paysafe_sdk_ios-master/paysafe_sdk_ios-master/Examples/TestMerchAppExample_Obj-C/TestMerchAppExample_Obj-CTests/TestMerchAppExample_Obj_CTests.m:48:1: '@EnD' must appear in an Objective-C context
/Users/user/Documents/paysafe_sdk_ios-master/paysafe_sdk_ios-master/Examples/TestMerchAppExample_Obj-C/TestMerchAppExample_Obj-CTests/TestMerchAppExample_Obj_CTests.m:24:1: Missing context for method declaration
/Users/user/Documents/paysafe_sdk_ios-master/paysafe_sdk_ios-master/Examples/TestMerchAppExample_Obj-C/TestMerchAppExample_Obj-CTests/TestMerchAppExample_Obj_CTests.m:30:1: Missing context for method declaration
/Users/user/Documents/paysafe_sdk_ios-master/paysafe_sdk_ios-master/Examples/TestMerchAppExample_Obj-C/TestMerchAppExample_Obj-CTests/TestMerchAppExample_Obj_CTests.m:36:1: Missing context for method declaration
/Users/user/Documents/paysafe_sdk_ios-master/paysafe_sdk_ios-master/Examples/TestMerchAppExample_Obj-C/TestMerchAppExample_Obj-CTests/TestMerchAppExample_Obj_CTests.m:43:1: Missing context for method declaration
I got these results by opening IOS_SDK.xcworkspace with Xcode 10.1
Hi there,
I'm trying to build the SDK on the iOS simulator off of an M1 macbook pro. I'm getting the following error:
This is what the log looks like:
d /Users/sanjaythakur/Library/Developer/Xcode/DerivedData/verdict-gmnolkxjoafxbpepelpyeycmcqsp/Build/Products/Debug-iphonesimulator/Paysafe_SDK/Paysafe_SDK.framework/Paysafe_SDK normal (in target 'Paysafe_SDK' from project 'Pods')
cd /Users/sanjaythakur/Documents/Projects/ios/verdict-ios/Pods
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -target arm64-apple-ios10.0-simulator -dynamiclib -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.5.sdk -L/Users/sanjaythakur/Library/Developer/Xcode/DerivedData/verdict-gmnolkxjoafxbpepelpyeycmcqsp/Build/Products/Debug-iphonesimulator/Paysafe_SDK -F/Users/sanjaythakur/Library/Developer/Xcode/DerivedData/verdict-gmnolkxjoafxbpepelpyeycmcqsp/Build/Products/Debug-iphonesimulator/Paysafe_SDK -F/Users/sanjaythakur/Documents/Projects/ios/verdict-ios/Pods/Paysafe_SDK/Frameworks -filelist /Users/sanjaythakur/Library/Developer/Xcode/DerivedData/verdict-gmnolkxjoafxbpepelpyeycmcqsp/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/Paysafe_SDK.build/Objects-normal/arm64/Paysafe_SDK.LinkFileList -install_name @rpath/Paysafe_SDK.framework/Paysafe_SDK -Xlinker -rpath -Xlinker /usr/lib/swift -Xlinker -rpath -Xlinker @executable_path/Frameworks -Xlinker -rpath -Xlinker @loader_path/Frameworks -dead_strip -Xlinker -object_path_lto -Xlinker /Users/sanjaythakur/Library/Developer/Xcode/DerivedData/verdict-gmnolkxjoafxbpepelpyeycmcqsp/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/Paysafe_SDK.build/Objects-normal/arm64/Paysafe_SDK_lto.o -Xlinker -export_dynamic -Xlinker -no_deduplicate -Xlinker -objc_abi_version -Xlinker 2 -fobjc-arc -fobjc-link-runtime -L/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator -L/usr/lib/swift -Xlinker -add_ast_path -Xlinker /Users/sanjaythakur/Library/Developer/Xcode/DerivedData/verdict-gmnolkxjoafxbpepelpyeycmcqsp/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/Paysafe_SDK.build/Objects-normal/arm64/Paysafe_SDK.swiftmodule -framework Foundation -Xlinker -no_adhoc_codesign -compatibility_version 1 -current_version 1 -Xlinker -dependency_info -Xlinker /Users/sanjaythakur/Library/Developer/Xcode/DerivedData/verdict-gmnolkxjoafxbpepelpyeycmcqsp/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/Paysafe_SDK.build/Objects-normal/arm64/Paysafe_SDK_dependency_info.dat -o /Users/sanjaythakur/Library/Developer/Xcode/DerivedData/verdict-gmnolkxjoafxbpepelpyeycmcqsp/Build/Products/Debug-iphonesimulator/Paysafe_SDK/Paysafe_SDK.framework/Paysafe_SDK
ld: warning: building for iOS Simulator, but linking in dylib built for iOS, 'CardinalMobile.framework'
ld: warning: Could not find or use auto-linked framework 'CardinalMobile'
Undefined symbols for architecture arm64:
"_OBJC_CLASS_$_ToolbarCustomization", referenced from:
objc-class-ref in UIConfiguration.o
"_OBJC_CLASS_$_TextBoxCustomization", referenced from:
objc-class-ref in UIConfiguration.o
"_OBJC_CLASS_$_ButtonCustomization", referenced from:
objc-class-ref in UIConfiguration.o
"_OBJC_CLASS_$_UiCustomization", referenced from:
objc-class-ref in UIConfiguration.o
"_OBJC_CLASS_$_LabelCustomization", referenced from:
objc-class-ref in UIConfiguration.o
"_OBJC_CLASS_$_CardinalSession", referenced from:
objc-class-ref in ThreeDSecureService.o
"_OBJC_CLASS_$_CardinalSessionConfiguration", referenced from:
objc-class-ref in ThreeDSecureService.o
"_CardinalSessionTimeoutStandard", referenced from:
Paysafe_SDK.ThreeDSecureService.(initializeCardinalSession in _EB5427C6CA270B39B9D95E2CF419FB4C)() -> Paysafe_SDK.CardinalSessionProtocol in ThreeDSecureService.o
"_CardinalSessionRenderTypeOTP", referenced from:
Paysafe_SDK.ThreeDSecureService.(initializeCardinalSession in _EB5427C6CA270B39B9D95E2CF419FB4C)() -> Paysafe_SDK.CardinalSessionProtocol in ThreeDSecureService.o
"_CardinalSessionRenderTypeHTML", referenced from:
Paysafe_SDK.ThreeDSecureService.(initializeCardinalSession in _EB5427C6CA270B39B9D95E2CF419FB4C)() -> Paysafe_SDK.CardinalSessionProtocol in ThreeDSecureService.o
ld: symbol(s) not found for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
I'm a little confused since ofc we've been shipping apps for the arm64
architecture forever so you'd think this would work on M1 unless specifically the ios simulator on arm64
is specifically being targeted to not work.
If app is built with Xcode 8 and launched on iOS version lower than iOS 10 then it crashes with below error.
yld: Symbol not found: _kABPersonAddressCityKey Referenced from: /Users/ajitemsahasrabuddhe/Library/Developer/CoreSimulator/Devices/83287726-DAB4-4319-9950-B4750F56DFAD/data/Containers/Bundle/Application/EB937A70-7404-49AA-966F-DF19720D824A/ChangeTransit.app/Frameworks/Paysafe.framework/Paysafe Expected in: /Library/Developer/CoreSimulator/Profiles/Runtimes/iOS 9.1.simruntime/Contents/Resources/RuntimeRoot/System/Library/Frameworks/PassKit.framework/PassKit in /Users/ajitemsahasrabuddhe/Library/Developer/CoreSimulator/Devices/83287726-DAB4-4319-9950-B4750F56DFAD/data/Containers/Bundle/Application/EB937A70-7404-49AA-966F-DF19720D824A/ChangeTransit.app/Frameworks/Paysafe.framework/Paysafe
As suggested in some links i have added AddressBook Framework in app but still it is crashing.
Refer discussion here
OceanLabs/iOS-Print-SDK#257
Building for iOS, but the linked and embedded framework 'CardinalMobile.framework' was built for iOS + iOS Simulator.
The included framework should be .xcframework
, I believe.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.