Select to view content in your preferred language

Any chance to add Swift Maps SDK to Swift Playground?

79
2
Jump to solution
yesterday
VHolubec
Esri Regular Contributor

Hello,

I am trying to test the Swift Maps SDK in iPad with M3 processor with Swift Playground (since I don´t have access to Xcode).

When trying to add the Maps SDK, I am getting an error - "Could not resolve the package graph...... failed validating archive from .....CoreArcGIS-Swift-v200.8.xcframework.zip ..... could not find executable for 'unzip'

I would like to ask if you haven´t came across this issue? 

Thank you,

Vladimir

Vladimir
0 Kudos
1 Solution

Accepted Solutions
Ting
by Esri Regular Contributor
Esri Regular Contributor

Hi Vladimir, thanks for the question. To my understanding, there are 2 limitations:

1. Swift Playground only supports using open source Swift packages, that are bundled with source code. Our Swift Maps SDK contains proprietary code and dependencies, so the Swift package for our SDK is bundled using closed-source binaries. See this doc for more details on how binary framework works in a Swift package.

2. Swift Playground on iPadOS is sandboxed, which means it cannot access other processes like apps on macOS. Therefore, when it tries to resolve the package graph/dependency for our Swift Maps SDK, it runs into the problem when it unzips the binary frameworks required by our package, as `unzip` is a separate process from the app.

 

Unfortunately, these are Apple's limitations that there aren't much we can do.

Our system requirements say that you have to run macOS in order to use our SDK. Can you find a MacBook or Mac Mini to try it out?

View solution in original post

2 Replies
Ting
by Esri Regular Contributor
Esri Regular Contributor

Hi Vladimir, thanks for the question. To my understanding, there are 2 limitations:

1. Swift Playground only supports using open source Swift packages, that are bundled with source code. Our Swift Maps SDK contains proprietary code and dependencies, so the Swift package for our SDK is bundled using closed-source binaries. See this doc for more details on how binary framework works in a Swift package.

2. Swift Playground on iPadOS is sandboxed, which means it cannot access other processes like apps on macOS. Therefore, when it tries to resolve the package graph/dependency for our Swift Maps SDK, it runs into the problem when it unzips the binary frameworks required by our package, as `unzip` is a separate process from the app.

 

Unfortunately, these are Apple's limitations that there aren't much we can do.

Our system requirements say that you have to run macOS in order to use our SDK. Can you find a MacBook or Mac Mini to try it out?

VHolubec
Esri Regular Contributor

Hi @Ting,

thank you so much for clarification and resources! At the moment, unfortunately, I don´t have any macOS device available. So far I will keep learning swift in the Playground, but I am keeping in mind that to move towards Esri Maps SDK I will need the macOS device.

Thank you!

Vladimir