Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Swift Sodium 0.9.1 with Swift Package Manager on ARM64/M1, Xcode 12.3, Big Sur 11.1 #231

Closed
johnalanwoods opened this issue Dec 15, 2020 · 12 comments

Comments

@johnalanwoods
Copy link
Contributor

johnalanwoods commented Dec 15, 2020

I've been teaching the use of Swift Sodium with Cocoapods, now I'm using an M1 Mac and using the Swift Package Manager and latest version of SS, 0.9.1.

Whenever I use it to create command line apps in Big Sur 11.1, I noticed that although it creates a target (that also seems to work), I see the following warning:

Skipping duplicate build file in Copy Files build phase: /Users/john/Library/Developer/Xcode/DerivedData/myApp/SourcePackages/checkouts/swift-sodium/Clibsodium.xcframework/macos-arm64_x86_64/libsodium.a

Only seems to occur with SPM, any idea how to resolve?

@johnalanwoods johnalanwoods changed the title Swift Sodium 0.9.1 with Swift Package Manager Swift Sodium 0.9.1 with Swift Package Manager on ARM64/M1 Dec 15, 2020
@johnalanwoods johnalanwoods changed the title Swift Sodium 0.9.1 with Swift Package Manager on ARM64/M1 Swift Sodium 0.9.1 with Swift Package Manager on ARM64/M1, Xcode 12.3, Big Sur 11.1 Dec 15, 2020
@johnalanwoods
Copy link
Contributor Author

johnalanwoods commented Dec 16, 2020

Confirmed this occurs with empty project too.

Skipping duplicate build file in Copy Files build phase: /Users/john/Library/Developer/Xcode/DerivedData/project/SourcePackages/checkouts/swift-sodium/Clibsodium.xcframework/macos-arm64_x86_64/libsodium.a

I have looked at the copy files phase and can't see anything to change.

@johnalanwoods
Copy link
Contributor Author

Spent some time troubleshooting this, seems to be a Swift Package Manager issue.

@johnalanwoods
Copy link
Contributor Author

@jedisct1 - are you seeing this on your DTK?

@jedisct1
Copy link
Owner

I've never noticed anything like that, but maybe I didn't look at the right place :)

Does it prevent the application from compiling, launching or being packaged?

@johnalanwoods
Copy link
Contributor Author

@jedisct1 no, it compiles and works :)

It's just a warning, it's weird though, even on a "hello world" type app, just importing via SPM and including an "import Sodium" - then this warning occurs.

On both my M1 machines.

@c128128
Copy link
Contributor

c128128 commented Dec 17, 2020

@johnalanwoods try to Archive the project. I think it can be related with this issue #230

@johnalanwoods
Copy link
Contributor Author

@plananderson, archive works, but warning remains.

@c128128
Copy link
Contributor

c128128 commented Dec 17, 2020

🤔

@johnalanwoods
Copy link
Contributor Author

Think this is a Swift-Sodium issue, not seeing it in any other projects using other libs.

@FabioTacke
Copy link

I get this warning multiple times on each build. Swift-Sodium 0.9.1, SPM, Intel based Mac, Xcode 12.4, macOS 11.2.3

@ppamorim
Copy link

Also happening on Catalina.

@johnalanwoods
Copy link
Contributor Author

@jedisct1 - no longer occurs in Big Sur 11.4 with Xcode Version 12.5 (12E262).

Closing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants