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

Not able to run swift run --package-path xcfs build #147

Open
kennethedge opened this issue Sep 12, 2023 · 3 comments
Open

Not able to run swift run --package-path xcfs build #147

kennethedge opened this issue Sep 12, 2023 · 3 comments

Comments

@kennethedge
Copy link

Hi, I'm new to the ios-system integration. When I try to build the ios_system.framework using the command swift run --package-path xcfs build. I get this issues

warning: Building with bitcode is deprecated. Please update your project and/or target settings to disable bitcode. (in target 'ios_system' from project 'ios_system')
** ARCHIVE FAILED **

Swift/ErrorType.swift:200: Fatal error: Error raised at top level: FMake.BuildError.unexpectedStatusCode
zsh: trace trap swift run --package-path xcfs build

I have checked the project, and there is no bitcode enable.

@pavlo-kravchenko
Copy link

pavlo-kravchenko commented Mar 22, 2024

Go to ios_system -> xcfs -> .build -> artifacts -> xcfs -> libssh2/openssl -> Move folder *.xcframework to previous xcfs
Sample:

...
-ios_system
--xcfs
---.build
----artifacts
-----xcfs
------libssh2.xcframework
------openssl.xcframework

And run ./ios_system/swift run --package-path xcfs build

I think this is a bad decision
And if anyone has something better, please let me know

@holzschu
Copy link
Owner

warning: Building with bitcode is deprecated. Please update your project and/or target settings to disable bitcode. (in target 'ios_system' from project 'ios_system')

The bitcode issue is just a warning. If the compilation fails, there is an error elsewhere in the log.

@pavlo-kravchenko
Copy link

pavlo-kravchenko commented Mar 24, 2024

You can edit the file ios_system->xcfs->.build->checkouts->FMake->Sources->FMake->Framework.swift
And setup enableBitCode: Bool = false in func xcxcf for test

But you will be get next error:

error: There is no XCFramework found at '/Project/ios_system/xcfs/.build/artifacts/xcfs/libssh2.xcframework'. (in target 'curl_ios' from project 'ios_system')
error: There is no XCFramework found at '/Project/ios_system/xcfs/.build/artifacts/xcfs/openssl.xcframework'. (in target 'curl_ios' from project 'ios_system')

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

3 participants