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

Copy-frameworks failed to support XCFramwork #3105

Closed
mikeli82 opened this issue Jan 9, 2021 · 6 comments
Closed

Copy-frameworks failed to support XCFramwork #3105

mikeli82 opened this issue Jan 9, 2021 · 6 comments

Comments

@mikeli82
Copy link

mikeli82 commented Jan 9, 2021

  • carthage install method: [ ] .pkg, [ ] homebrew, [x] source
  • which carthage:
  • carthage version: 0.35.0
  • xcodebuild -version: 12.0.1
  • Are you using --no-build?
  • Are you using --no-use-binaries?
  • Are you using --use-submodules?
  • Are you using --cache-builds?
  • Are you using --new-resolver?

Cartfile

Carthage Output

Failed to read file or folder at /mobile-client/Carthage/Build/iOS/SciChart.xcframework: Error Domain=NSCocoaErrorDomain Code=259 "Cannot retrive binary file from bundle at file:///mobile-client/Carthage/Build/iOS/SciChart.xcframework/" UserInfo={NSLocalizedDescription=Cannot retrive binary file from bundle at file:///mobile-client/Carthage/Build/iOS/SciChart.xcframework/, NSLocalizedRecoverySuggestion=Does the bundle contain an Info.plist?}
Command PhaseScriptExecution failed with a nonzero exit code

Actual outcome

copy-frameworks command fails with above error.

Expected outcome

copy-frameworks should work properly.

Note
The root case should relate to method func binaryURL(_ packageURL: URL) -> Result<URL, CarthageError>, this method doesn't contain the code to recognize the executable from a .xcframework.

@tmspzz
Copy link
Member

tmspzz commented Jan 12, 2021

You don't need copy-frameworks when using xcframeworks.

@mikeli82
Copy link
Author

You don't need copy-frameworks when using xcframeworks.

You mean when we are using xcframeworks, Xcode will strip the code for different architecture, then we don't need to use copy-frameworks to strip the code, just embed them in our project, right?

@tmspzz
Copy link
Member

tmspzz commented Jan 12, 2021

Correct. But there is no stripping going on at all.

@mikeli82
Copy link
Author

mikeli82 commented Jan 12, 2021

Thanks @tmspzz , you're right, Xcode just needs to copy the corresponding architecture from the xcframework if there is only one architecture in one binary file.

@zubairahmad2
Copy link

You don't need copy-frameworks when using xcframeworks.

Thanks a lot

@musesfish
Copy link

musesfish commented Dec 1, 2022

Maybe these erros I got is cause by "Copy-frameworks failed to support XCFramwork" ? Has anyone knowed ?
error build: Unable to load contents of file list: '/Target Support Files/FirebaseAnalytics/FirebaseAnalytics-xcframeworks-input-files.xcfilelist'
error build: Unable to load contents of file list: '/Target Support Files/FirebaseAnalytics/FirebaseAnalytics-xcframeworks-output-files.xcfilelist'
error build: Unable to load contents of file list: '/Target Support Files/GoogleAppMeasurement/GoogleAppMeasurement-xcframeworks-input-files.xcfilelist'
error build: Unable to load contents of file list: '/Target Support Files/GoogleAppMeasurement/GoogleAppMeasurement-xcframeworks-output-files.xcfilelist'

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