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

Unable to archive project with Xcode 11 beta 4 #1241

Closed
3 tasks done
marcosatanaka opened this issue Jul 22, 2019 · 2 comments
Closed
3 tasks done

Unable to archive project with Xcode 11 beta 4 #1241

marcosatanaka opened this issue Jul 22, 2019 · 2 comments

Comments

@marcosatanaka
Copy link

marcosatanaka commented Jul 22, 2019

Check List

Thanks for considering to open an issue. Before you submit your issue, please confirm these boxes are checked.

Issue Description

What

I'm getting a lot of Undefined symbol for architecture arm64 errors when archiving the project in Xcode 11 beta 4. Even on xcode11 branch:

Undefined symbol: protocol witness table for Swift.UInt8 : Swift.CVarArg in Swift
Undefined symbol: _swift_initEnumMetadataSinglePayload
Undefined symbol: _swift_getTupleTypeMetadata
Undefined symbol: _swift_getFunctionTypeMetadata2
Undefined symbol: Foundation.Data.append(Foundation.Data) -> ()
[...]

Reproduce

  • With Xcode 11 beta 4, create a new project
  • Create a Podfile by running $ pod init
  • Edit the Podfile as follows:
platform :ios, '13.0'
target 'KingfisherTest' do
  use_frameworks!
  pod 'Kingfisher', :git => 'https://github.com/onevcat/Kingfisher.git', :branch => 'xcode11'
end
  • Run $ pod install
  • Open the generated xcworkspace
  • On Xcode, go to Product > Archive

Other Comment

  • My CocoaPods version is 1.7.5.
  • I've also tried with Kingfisher version 5.7.0 and got the same result.
  • I was able to archive a project created with Xcode 10 using Kingfisher 5.7.0.

-- Edit:

I think maybe this is a problem with CocoaPods... Because I can successfully archive if I create a new project using Swift Package Manager pointing to the xcode11 branch.

@onevcat
Copy link
Owner

onevcat commented Jul 23, 2019

I believe it is an issue in Xcode 11 beta 4. Hopefully, Apple might fix it in the next beta. If you need to archive the project now, I suggest to check the workaround here: Carthage/Carthage#2825

@marcosatanaka
Copy link
Author

Yep! This issue was fixed in Xcode 11 beta 5, so I'm closing it 🙌

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

2 participants