Hi there,
Are the Swift binding and C library tested for iOS? I see tests are done on MacOS, but no mention of iOS in the repo
## Flow Diagram

## Binding Functions
#### `request_Access_With_Passphrase(String, String, String)`
* function requests satellite for a new access grant using a passhprase
* pre-requisites: None
* inputs: Satellite Address, API Key and Encryptionphassphrase
* output: AccessResult
#### `parse_Access(String)`
* function to parses serialized access grant string
* pre-requisites: None
* inputs: StringKey
This file has been truncated. show original
Hi @awcchungster - I do not believe they were tested in an iOS build - just with xcode. If you find any issues using with iOS please feel free to submit a PR.
I tried importing the Stork Swift bindings into an Xcode project and I’m getting stuck on the set up instructions. I think there’s something missing in the documentation.
Could someone on the Storj team please take a look?
Erikvv
November 12, 2021, 4:21am
4
Hi I’ve tested the Swift bindings for Linux. It is hard for us to help you because most of the developers at Storj don’t have a Mac so can’t install Xcode.
I will try something it but I’m not giving it a high chance of success.
I got through some of the initial issues. I’m now stuck on compiling the Go SDK to work with iOS devices.
opened 12:08PM - 15 Jun 21 UTC
I followed all steps mentioned in read me at https://github.com/storj-thirdparty… /uplink-swift
verified them multiple times,
When building the app it throws back with exception "999" message "Failed to open dylib file"
to find what is happening I get some deep in code.
when I run it on Simulator it throws at this part of code in uplink_swift.swift
let dynammicFileHandle = dlopen(storjSwiftPathString, RTLD_LOCAL|RTLD_NOW)
if dynammicFileHandle == nil {
throw storjException(code: 9999, message: "Failed to open dylib file")
}
and when I run it on real iPhone device iPhoneX, it throw from this part
if !fileManger.fileExists(atPath: storjSwiftPathString) {
throw storjException(code: 9999, message: "Failed to open dylib file")
}
with some more deep-dive I have seen the path it is trying to check the file existence and trying to read from, the file exists right there in both cases, Simulator as well as iPhone X, but not able to open the file in either case.
Xcode Version: 12.4
iPhone X:
macVersion: macOS Catalina 10.15.7
do let me know where I am missing...
It actually seems that someone else has figured this out based on this stackoverflow comments:
After doing some heavy research and testing myself, I’ve found that the Storj bindings are not compatible with iOS and likely not compatible with M1 Macs either. Community managers, please see this ticket here.
opened 10:19PM - 15 Nov 21 UTC
Hi everyone,
I've been testing the iOS bindings and running into severe issue… s with the compilation and run step for this library. Has uplink-c bindings been tested with iOS or M1 devices?
After my own testing, I believe it doesn't work. I've documented where I get stuck in [this ticket](https://github.com/storj-thirdparty/uplink-swift/issues/5). The bindings itself doesn't appear to be the problem, and it's related to the uplink-c compiler issues.
Has the Uplink-C library been tested with M1, or iOS devices? It is breaking when I run it.
bre
November 18, 2021, 10:17am
7
Hi @awcchungster ,
Thank you for bringing this to our attention.
I will make sure this gets in front of the team.
Erikvv
November 18, 2021, 10:43am
8
2 Likes