star-micronics / StarPRNT-SDK-iOS-Swift

StarPRNT SDK for iOS including libraries for supporting application development for Star printers.
https://www.star-m.jp/products/s_print/sdk/starprnt_sdk/manual/ios_swift/en/index.html
Other
41 stars 7 forks source link

is this sdk work for M1 processer ? #11

Open ali4fun opened 2 years ago

ali4fun commented 2 years ago

i am running on M1 macbook processor. it failing to run.

gare-bear commented 2 years ago

Yes, this can be built on M1 Macs. Please be more specific on what is failing.

ali4fun commented 2 years ago

sorry for late update. this error i get Undefined symbols for architecture x86_64: "_OBJC_CLASS_$_CIContext", referenced from: objc-class-ref in SMCloudServices(SMCSAllReceipts.o) objc-class-ref in StarIO_Extension(SCBPdf417.o) objc-class-ref in StarIO_Extension(SCBQrCode.o) "_OBJC_CLASS_$_CIFilter", referenced from: objc-class-ref in SMCloudServices(SMCSAllReceipts.o) objc-class-ref in StarIO_Extension(SCBPdf417.o) objc-class-ref in StarIO_Extension(SCBQrCode.o) ld: symbol(s) not found for architecture x86_64 clang: error: linker command failed with exit code 1 (use -v to see invocation) please guide me if you faced this issue or have any idea how to fix it.

gare-bear commented 2 years ago

@ali4fun Sounds like you might be using an older version of StarIO_Extension. The latest release of StarIO & StarIO_Extension adds support for the iOS Simulators. https://github.com/star-micronics/StarPRNT-SDK-iOS-Swift/releases/tag/V5.15.0

Make sure you're using the latest frameworks.

ali4fun commented 2 years ago

@gare-bear thanks for a replay. I try to use latest versions but still facing same issue. these version I am using. Installing StarIO (2.9.0) Installing StarIO_Extension (1.16.0) thank you

ali4fun commented 2 years ago

@gare-bear any update about this issue ?

ali4fun commented 2 years ago

i tried on real device but still same issue. Undefined symbols for architecture arm64: "_OBJC_CLASS_$_CIContext", referenced from: objc-class-ref in StarIO_Extension(SCBPdf417.o) objc-class-ref in StarIO_Extension(SCBQrCode.o) "_OBJC_CLASS_$_CIFilter", referenced from: objc-class-ref in StarIO_Extension(SCBPdf417.o) objc-class-ref in StarIO_Extension(SCBQrCode.o) ld: symbol(s) not found for architecture arm64

gare-bear commented 2 years ago

@ali4fun I use an M1 Mac for daily development, so I know it works. if you can explain how to reproduce the issue, I can look into it further.

ali4fun commented 2 years ago

sorry for LP. after pod installation when i try to run app then i see error. ` /Users/mahmoud/Library/Developer/Xcode/DerivedData/starprinter-dddyjpyimlhrrlbnfmppratkwaro/Build/Products/Debug-iphonesimulator/starprinter.app/starprinter normal (in target 'starprinter' from project 'starprinter') cd /Users/mahmoud/Desktop/devel/printer\ ios\ test/starprinter /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -target arm64-apple-ios15.0-simulator -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator15.0.sdk -L/Users/mahmoud/Library/Developer/Xcode/DerivedData/starprinter-dddyjpyimlhrrlbnfmppratkwaro/Build/Products/Debug-iphonesimulator -F/Users/mahmoud/Library/Developer/Xcode/DerivedData/starprinter-dddyjpyimlhrrlbnfmppratkwaro/Build/Products/Debug-iphonesimulator -F/Users/mahmoud/Desktop/devel/printer\ ios\ test/starprinter/Pods/StarIO -F/Users/mahmoud/Desktop/devel/printer\ ios\ test/starprinter/Pods/StarIODeviceSetting -F/Users/mahmoud/Desktop/devel/printer\ ios\ test/starprinter/Pods/StarIO_Extension -F/Users/mahmoud/Library/Developer/Xcode/DerivedData/starprinter-dddyjpyimlhrrlbnfmppratkwaro/Build/Products/Debug-iphonesimulator/XCFrameworkIntermediates/StarIO -F/Users/mahmoud/Library/Developer/Xcode/DerivedData/starprinter-dddyjpyimlhrrlbnfmppratkwaro/Build/Products/Debug-iphonesimulator/XCFrameworkIntermediates/StarIODeviceSetting -F/Users/mahmoud/Library/Developer/Xcode/DerivedData/starprinter-dddyjpyimlhrrlbnfmppratkwaro/Build/Products/Debug-iphonesimulator/XCFrameworkIntermediates/StarIO_Extension -filelist /Users/mahmoud/Library/Developer/Xcode/DerivedData/starprinter-dddyjpyimlhrrlbnfmppratkwaro/Build/Intermediates.noindex/starprinter.build/Debug-iphonesimulator/starprinter.build/Objects-normal/arm64/starprinter.LinkFileList -Xlinker -rpath -Xlinker @executable_path/Frameworks -Xlinker -rpath -Xlinker @loader_path/Frameworks -Xlinker -rpath -Xlinker @executable_path/Frameworks -dead_strip -Xlinker -object_path_lto -Xlinker /Users/mahmoud/Library/Developer/Xcode/DerivedData/starprinter-dddyjpyimlhrrlbnfmppratkwaro/Build/Intermediates.noindex/starprinter.build/Debug-iphonesimulator/starprinter.build/Objects-normal/arm64/starprinter_lto.o -Xlinker -export_dynamic -Xlinker -no_deduplicate -Xlinker -objc_abi_version -Xlinker 2 -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/mahmoud/Library/Developer/Xcode/DerivedData/starprinter-dddyjpyimlhrrlbnfmppratkwaro/Build/Intermediates.noindex/starprinter.build/Debug-iphonesimulator/starprinter.build/Objects-normal/arm64/starprinter.swiftmodule -ObjC -framework CoreBluetooth -framework ExternalAccessory -framework StarIO -framework StarIODeviceSetting -framework StarIO_Extension -Xlinker -sectcreate -Xlinker TEXT -Xlinker entitlements -Xlinker /Users/mahmoud/Library/Developer/Xcode/DerivedData/starprinter-dddyjpyimlhrrlbnfmppratkwaro/Build/Intermediates.noindex/starprinter.build/Debug-iphonesimulator/starprinter.build/starprinter.app-Simulated.xcent -framework Pods_starprinter -Xlinker -no_adhoc_codesign -Xlinker -dependency_info -Xlinker /Users/mahmoud/Library/Developer/Xcode/DerivedData/starprinter-dddyjpyimlhrrlbnfmppratkwaro/Build/Intermediates.noindex/starprinter.build/Debug-iphonesimulator/starprinter.build/Objects-normal/arm64/starprinter_dependency_info.dat -o /Users/mahmoud/Library/Developer/Xcode/DerivedData/starprinter-dddyjpyimlhrrlbnfmppratkwaro/Build/Products/Debug-iphonesimulator/starprinter.app/starprinter

ld: warning: directory not found for option '-F/Users/mahmoud/Library/Developer/Xcode/DerivedData/starprinter-dddyjpyimlhrrlbnfmppratkwaro/Build/Products/Debug-iphonesimulator/XCFrameworkIntermediates/StarIO' ld: warning: directory not found for option '-F/Users/mahmoud/Library/Developer/Xcode/DerivedData/starprinter-dddyjpyimlhrrlbnfmppratkwaro/Build/Products/Debug-iphonesimulator/XCFrameworkIntermediates/StarIODeviceSetting' ld: warning: directory not found for option '-F/Users/mahmoud/Library/Developer/Xcode/DerivedData/starprinter-dddyjpyimlhrrlbnfmppratkwaro/Build/Products/Debug-iphonesimulator/XCFrameworkIntermediates/StarIO_Extension' ld: framework not found StarIO clang: error: linker command failed with exit code 1 (use -v to see invocation) `

ali4fun commented 2 years ago
Screen Shot 2022-01-30 at 9 43 09 AM

@gare-bear this is screen shoot. i hope you have fixed this issue. xcode : Version 13.1 (13A1030d) Installing StarIO (2.9.0) Installing StarIODeviceSetting (1.0.1) Installing StarIO_Extension (1.16.0)

bandit-ibayashi commented 6 months ago

I'm arfaid it's been a long time. I tried it on my M2 mac mini, and it worked without any errors like this.

% uname -m
arm64
% sw_vers
ProductName:        macOS
ProductVersion:     14.3.1
BuildVersion:       23D60

This error does not seem to be caused by the processor. If this error continues to occur, could you please build our sample SDK once? I think this will help isolate the cause.