5

I made a simple blank project and added Bugsee via swift-package-manager.

Its located on https://github.com/bugsee/spm.

I can successfully build project for iOS Device.

But it fails for Simulator. And the error is not really verbose (the path is shortened):

Cannot open file handle for file at path: Path(str: ".../Bugsee.xcframework/ios-arm64_i386_x86_64-simulator/Bugsee.framework")

What does it mean?

The path is valid and the framework is there: enter image description here

I also found that build for simulator is OK after I have added Bugsee.xcframework into Frameworks, Libraries, and Embedded Content. enter image description here

Does anyone know what's wrong?

2
  • I use Xcode 12.5.1 Commented Sep 9, 2021 at 9:51
  • Same happens with Xcode Version 13.4.1 (13F100) Commented Jul 1, 2022 at 22:15

1 Answer 1

1

It looks like SPM in Xcode have an issue with i386 arch. Bugsee released 1.28.0 with dropped support for i386 arch. And now Xcode starts building fine for simulator. I think i should create a ticket in SPM tracker.

Sign up to request clarification or add additional context in comments.

2 Comments

I am experiencing the same/similar issue, with a locally added XCFramework, Xcode 13.3, when all 3 conditions are true: (i) Simulator, (ii) Release build, (iii) SPM: '/Users/{PATH}/{FRAMEWORK_NAME}.xcframework' is missing architecture(s) required by this target (arm64), but may still be link-compatible.
Hey! Unfortunately, i haven't found the solution. SPM forum left my question without answers :(

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.