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

Header file can not be found when archiving for Catalyst #10354

Closed
yulin-liang opened this issue Jan 15, 2021 · 3 comments
Closed

Header file can not be found when archiving for Catalyst #10354

yulin-liang opened this issue Jan 15, 2021 · 3 comments

Comments

@yulin-liang
Copy link

Archiving a project for Mac Catalyst that includes the gRPC-Core pod fails because header files in its sub-framework openssl_grpc.framework can not be found. While building for Catalyst or archiving for iOS device are successful.

  • When building the project, openssl_grpc.framework creates a new symlink called Header which points to Versions/Current/Headers
    Screen Shot 2021-01-14 at 2 55 21 PM

    image

  • But archiving doesn't create the symbolic link.
    image

    image

Here's the BoringSSL-GRPC.podspec, I don't if it is related to the header_mappings_dir or header_dir attributes, do you have any idea?

Reproduce

Here's an smaller repro case at https://github.com/paulb777/CatalystArchiveGRPC

git clone git@github.com:paulb777/CatalystArchiveGRPC.git
cd CatalystArchiveGRPC
open CatalystArchiveGRPC.xcworkspace
Choose MyMac scheme
Product -> Archive

What did you expect to happen?

Archive fails.

What happened instead?

Successful archive

CocoaPods Environment

ℹ Please replace these two lines with the output of pod env.

Stack

   CocoaPods : 1.9.3
        Ruby : ruby 2.6.5p114 (2019-10-01 revision 67812) [x86_64-darwin18]
    RubyGems : 3.0.8
        Host : macOS 11.1 (20C69)
       Xcode : 11.6 (11E708)
         Git : git version 2.30.0.284.gd98b1dd5eaa7-goog
Ruby lib dir : /Users/yulinliang/.rvm/rubies/ruby-2.6.5/lib
Repositories : cocoapods - git - https://github.com/CocoaPods/Specs.git @ d5725915e8e3c2c1bf31228f817373543a9cee3e

               trunk - CDN - https://cdn.cocoapods.org/

Installation Source

Executable Path: /Users/yulinliang/.rvm/gems/ruby-2.6.5/bin/pod

Plugins

cocoapods-deintegrate : 1.0.4
cocoapods-plugins     : 1.0.0
cocoapods-search      : 1.0.0
cocoapods-stats       : 1.1.0
cocoapods-trunk       : 1.5.0
cocoapods-try         : 1.2.0

Podfile

# Uncomment the next line to define a global platform for your project
# platform :ios, '9.0'

target 'CatalystArchiveGRPC' do
  # Comment the next line if you don't want to use dynamic frameworks
  use_frameworks!

  # Pods for CatalystArchiveGRPC
  pod "BoringSSL-GRPC", "0.0.14"
  pod "gRPC-Core", "1.34.0"

end

Project that demonstrates the issue

https://github.com/paulb777/CatalystArchiveGRPC

more info can be found: grpc/grpc#20500

@dnkoutso
Copy link
Contributor

dnkoutso commented Jan 15, 2021

quick suggestion: did try cocoapods 1.10.1?

@yulin-liang
Copy link
Author

It still doesn't work.

@tgoyne
Copy link
Contributor

tgoyne commented Jan 20, 2021

#10224 should fix this.

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