Swift Package based project

ios
#1

Hi,

We are currently building an iOS library as a Swift Package. We have been able to add it as an app in Bitrise using a generated Xcode project (.xcodeproj). But that is giving us a compilation error when adding resources and trying to access them using Bundle.module.

Question:
Is it possible to generate an app in Bitrise that uses the Package.swift manifesto instead of needing an .xcodeproj file?

Thanks in advance.

0 Likes

#2

Hello @DarioGasquez :wave:

Although we have no official support with readily available steps to use the Package.switt manifesto, you can technically write a script via our Script step that can work like that, or create a step for it: https://devcenter.bitrise.io/contributors/create-your-own-step/

0 Likes

#3

Thanks @Roland-Bak
In the end that is what we did (use a custom script using the script step).

0 Likes