iOS Question Library Wrapper Help (SOLVED)

walterf25

Expert
Licensed User
Longtime User
Hi all, i am working on a library wrapper for POS system, i have already done the Android side which took me some time to get it working, now I need to get the iOS version done, I have the Library compile just fine, i have generated the xml file and placed in the additional Library folder, I have also copied the framework into the Libs folder of my hosted mac builder along with the libname.a, name.a and name.h files.

I have also linked all the necessary frameworks that are needed for this SDK, When I try to run the library in a small example i get the following errors:

The Library SDK i'm trying to wrap is this one here when I compile the library in xcode i don't get any errors at all, any hints as to what to look for?

Walter
 

walterf25

Expert
Licensed User
Longtime User
Where does this line come from: ld: warning: ignoring file ../../Libs/AVFoundation.framework/AVFoundation.tbd, missing required architecture arm64 in file ../../Libs/AVFoundation.framework/AVFoundation.tbd ?
It comes from the compiling dialog.

Walter
 
Upvote 0

walterf25

Expert
Licensed User
Longtime User
Two things to try:
1. Change the ~DependsOn to: //~dependson: SumUpSDK.framework.swift.3
2. Change the ~DependsOn to: //~dependson: SumUpSDK.framework.3
I tried both things but I still can't compile,

The entire error log is this:

Do you have any other suggestions I can try?

Thanks,
Walter
 
Upvote 0

Erel

B4X founder
Staff member
Licensed User
Longtime User
These lines suggest that you are not loading the correct frameworks:
ld: warning: ignoring file ../../Libs/MapKit.framework/MapKit.tbd, missing required architecture arm64 in file ../../Libs/MapKit.framework/MapKit.tbd
ld: warning: ignoring file ../../Libs/AVFoundation.framework/AVFoundation.tbd, missing required architecture arm64 in file ../../Libs/AVFoundation.framework/AVFoundation.tbd
ld: warning: ignoring file ../../Libs/Accelerate.framework/Accelerate.tbd, missing required architecture arm64 in file ../../Libs/Accelerate.framework/Accelerate.tbd (2 slices)
ld: warning: ignoring file ../../Libs/ExternalAccessory.framework/ExternalAccessory.tbd, missing required architecture arm64 in file ../../Libs/ExternalAccessory.framework/ExternalAccessory.tbd

I'm not sure where they come from.
 
Upvote 0

walterf25

Expert
Licensed User
Longtime User
They're used by the library im trying to wrap, i am referencing them in the B4i project with the additionalLibrary directive, do i need to add them to the .h file with the dependsOn as well?

Walter
 
Upvote 0

walterf25

Expert
Licensed User
Longtime User
Their instructions says to link up those frameworks
 
Upvote 0

Erel

B4X founder
Staff member
Licensed User
Longtime User
They're used by the library im trying to wrap, i am referencing them in the B4i project with the additionalLibrary directive
1. We cannot guess such things.
2. You should have posted all the additional libs in the first post.
3. I still don't know what you are doing and we are in post #11.
 
Upvote 0

walterf25

Expert
Licensed User
Longtime User
1. We cannot guess such things.
2. You should have posted all the additional libs in the first post.
3. I still don't know what you are doing and we are in post #11.
I apologize Erel, you are correct, i should haven given the full context of the issue.

Basically I am trying to wrap a POS SDK, as i mentioned on the first post, I have already done the Android part, now i need to wrap the iOS side of it.

With that said, i have created a project in Xcode following the same tutorial i have followed with the 10 or 15 other libraries I have wrapped for other clients before, the issue i am having now is that while the Library compiles just fine, when I try to run an example app in B4i i get the errors i posted above.

The Library SDK i'm working with is this one, here in their instructions they require for the following frameworks to be linked up against the project as they are used by the SDK.
Accelerate
AVFoundation
ExternalAccessory
MapKit

I have already included this libraries in the project and I have copied them to the Libs folder as well, I am not sure what else to try, I have tried many things I have found on google and stackoverflow but nothing seems to work, I have tried your suggestions on post #6 and none of those two suggestions worked for me.

I am using Xcode 11.6 by the way.

I am simply trying to get some help to figure this out, i thought it would be easier, rather than spend countless hours trying to figure it out on my own, anyhow, I really appreciate your time Erel, hope you have a great day.

Walter
 
Upvote 0