Alamofire framework not found(Xcode-8.2.1 and iOS 10.2)

后端 未结 4 1177
半阙折子戏
半阙折子戏 2021-01-24 06:33

I have tried so many solutions out there but finally not getting what to do . I just installed cocoa pods for Alamofire and swiftyJson . And now when i

4条回答
  •  傲寒
    傲寒 (楼主)
    2021-01-24 07:04

    Change your Podfile with the following

    # Uncomment the next line to define a global platform for your project
    platform :ios, '10.2'
    # Comment the next line if you're not using Swift and don't want to use dynamic frameworks
    use_frameworks!
    
    
    def shared_pods
       pod 'Alamofire'
       pod 'SwiftyJSON'
    end
    target 'Modes' do
       # Pods for Modes
       shared_pods
    end
    target 'ModesTests' do
       inherit! :search_paths
       # Pods for testing
       shared_pods
    
     end
    
     target 'ModesUITests' do
       inherit! :search_paths
        # Pods for testing
        shared_pods
    
       end
    

    Do the pod deintegrate and pod install again.

提交回复
热议问题