pgdaniel / cordova_cardflight Goto Github PK
View Code? Open in Web Editor NEWCordova CardFlight plugin
License: Apache License 2.0
Cordova CardFlight plugin
License: Apache License 2.0
Thanks a lot for sharing.
I have very little experience with phonegap but I followed the installation step and when I try to build the project I have the following error:
The file “CDVCardFlight.d” couldn’t be opened because there is no such file
Is there any way to fix this?
here is a more detailed version of my error:
$ phonegap build ios
[phonegap] compiling iOS...
[error] An error occurred while building the ios project.2013-12-16 13:56:43.868 xcodebuild[28928:7003] DVTAssertions: Warning in /SourceCache/IDEXcode3ProjectSupport/IDEXcode3ProjectSupport-3575/Xcode3Sources/XcodeIDE/Frameworks/DevToolsBase/pbxcore/SpecificationTypes/XCGccMakefileDependencies.m:78
Details: Failed to load dependencies output contents from ``/Users/****/mobile/phongap-pos/platforms/ios/build/phonegap-pos.build/Debug-iphoneos/phonegap-pos.build/Objects-normal/armv7/CDVCardFlight.d''. Error: Error Domain=NSCocoaErrorDomain Code=260 "The file “CDVCardFlight.d” couldn’t be opened because there is no such file." UserInfo=0x7fe6051c3670 {NSFilePath=/Users/***/mobile/phongap-pos/platforms/ios/build/phonegap-pos.build/Debug-iphoneos/phonegap-pos.build/Objects-normal/armv7/CDVCardFlight.d, NSUnderlyingError=0x7fe60515b200 "The operation couldn’t be completed. No such file or directory"}. User info: {
NSFilePath = "/Users/***/mobile/phongap-pos/platforms/ios/build/phonegap-pos.build/Debug-iphoneos/phonegap-pos.build/Objects-normal/armv7/CDVCardFlight.d";
NSUnderlyingError = "Error Domain=NSPOSIXErrorDomain Code=2 \"The operation couldn\U2019t be completed. No such file or directory\"";
}.
Function: void XCGccMakefileDependenciesParsePathsFromRuleFile(NSString *__strong, F) [F = <lambda at /SourceCache/IDEXcode3ProjectSupport/IDEXcode3ProjectSupport-3575/Xcode3Sources/XcodeIDE/Frameworks/DevToolsBase/pbxcore/SpecificationTypes/XCGccMakefileDependencies.m:168:73>]
Thread: <NSThread: 0x7fe60284fbc0>{name = (null), num = 9}
Please file a bug at http://bugreport.apple.com with this warning message and any useful information you can provide.
** BUILD FAILED **
The following build commands failed:
CompileC build/phonegap-pos.build/Debug-iphoneos/phonegap-pos.build/Objects-normal/armv7/CDVCardFlight.o phonegap-pos/Plugins/org.apache.cordova.cardflight/CDVCardFlight.m normal armv7 objective-c com.apple.compilers.llvm.clang.1_0.compiler
(1 failure)
2013-12-16 13:56:44.653 xcodebuild[29097:7203] DVTAssertions: Warning in /SourceCache/IDEXcode3ProjectSupport/IDEXcode3ProjectSupport-3575/Xcode3Sources/XcodeIDE/Frameworks/DevToolsBase/pbxcore/SpecificationTypes/XCGccMakefileDependencies.m:78
Details: Failed to load dependencies output contents from ``/Users/***/mobile/phongap-pos/platforms/ios/build/phonegap-pos.build/Debug-iphonesimulator/phonegap-pos.build/Objects-normal/i386/CDVCardFlight.d''. Error: Error Domain=NSCocoaErrorDomain Code=260 "The file “CDVCardFlight.d” couldn’t be opened because there is no such file." UserInfo=0x7f98e4b02a90 {NSFilePath=/Users/***/mobile/phongap-pos/platforms/ios/build/phonegap-pos.build/Debug-iphonesimulator/phonegap-pos.build/Objects-normal/i386/CDVCardFlight.d, NSUnderlyingError=0x7f98e4b02680 "The operation couldn’t be completed. No such file or directory"}. User info: {
NSFilePath = "/Users/***/mobile/phongap-pos/platforms/ios/build/phonegap-pos.build/Debug-iphonesimulator/phonegap-pos.build/Objects-normal/i386/CDVCardFlight.d";
NSUnderlyingError = "Error Domain=NSPOSIXErrorDomain Code=2 \"The operation couldn\U2019t be completed. No such file or directory\"";
}.
Function: void XCGccMakefileDependenciesParsePathsFromRuleFile(NSString *__strong, F) [F = <lambda at /SourceCache/IDEXcode3ProjectSupport/IDEXcode3ProjectSupport-3575/Xcode3Sources/XcodeIDE/Frameworks/DevToolsBase/pbxcore/SpecificationTypes/XCGccMakefileDependencies.m:168:73>]
Thread: <NSThread: 0x7f98e4b02ad0>{name = (null), num = 9}
Please file a bug at http://bugreport.apple.com with this warning message and any useful information you can provide.
** BUILD FAILED **
The following build commands failed:
CompileC build/phonegap-pos.build/Debug-iphonesimulator/phonegap-pos.build/Objects-normal/i386/CDVCardFlight.o phonegap-pos/Plugins/org.apache.cordova.cardflight/CDVCardFlight.m normal i386 objective-c com.apple.compilers.llvm.clang.1_0.compiler
(1 failure)
Thanks in advance for your help!
Even after updating included cardflight library to the latest version I'm not able to build my application with the following issue during linking of the app:
Undefined symbols for architecture arm64:
"OBJC_CLASS$_CALayer", referenced from:
objc-class-ref in libCardFlightLibrary.a(CFTPaymentView.o)
"_CATransform3DIdentity", referenced from:
___42-[CFTPaymentView setPlaceholderViewImage:]_block_invoke227 in libCardFlightLibrary.a(CFTPaymentView.o)
"_CATransform3DMakeScale", referenced from:
-[CFTPaymentView setPlaceholderViewImage:] in libCardFlightLibrary.a(CFTPaymentView.o)
___42-[CFTPaymentView setPlaceholderViewImage:]_block_invoke in libCardFlightLibrary.a(CFTPaymentView.o)
ld: symbol(s) not found for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Any ideas?
Would be nice to be able to check the current status as well as listen for changes to the status... Not sure how this would work for the cordova plugin though.
cardFlight.getReaderStatus(func(status))
cardFlight.onReaderAttached(func)
cardFlight.onReaderConnecting(func)
cardFlight.onReaderConnected(func)
Thoughts?
Maybe:
cardFlight.configure({
apiToken: "...",
accountToken: "...",
success: func(),
error: func()
});
??
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.