Why linker link static libraries with errors? iOS

后端 未结 17 1336
自闭症患者
自闭症患者 2020-11-27 14:39

I have a problem with linking my mixed language framework to a project.

1) I create a framework with Swift and Objective-C classes.

2) The main logic was stored in the

17条回答
  •  执笔经年
    2020-11-27 15:14

    XCode 11.3 beta, Swift 5.0

    I just add my targets to the podfile:

    platform :ios, '9.0' 
    use_frameworks! 
    inhibit_all_warnings!
    
    def shared_pods
        # Pods for NamaIOS
        pod 'Alamofire'
        pod 'RxSwift'
    end
    
    target 'MyApp' do
      use_frameworks!
    
      shared_pods
    
    end
    
    target 'MyApp-Test' do
      use_frameworks!
    
      shared_pods
    
    end
    
    target 'MyApp-Development' do
      use_frameworks!
    
      shared_pods
    
    end
    

提交回复
热议问题