ld: framework not found Stripe for architecture x86_64

前端 未结 4 2130
再見小時候
再見小時候 2020-12-10 11:45

I have an iOS component which relies on the Stripe iOS SDK, Project A. I included the Stripe SDK in Project A in Xcode and it compiles fine.

However, I\'m building

4条回答
  •  鱼传尺愫
    2020-12-10 12:32

    Did you run into this issue when you ran your test cases?

    So this is how my podfile looks like:

    def shared_pods
        pod ‘GoogleMaps', '~> 1.13.0'
        pod ‘SwiftyJSON', '~> 2.3.2'
        pod ‘Alamofire', '~> 3.2.1'
        pod ‘MGSwipeTableCell’
    end
    
    target 'projectName' do
       shared_pods
    end
    

    So then I added this to podfile:

    target ‘ProjectTests’ do
        pod ‘Nimble’, ‘~> 4.0.0’
        pod ’Quick’
    end
    

    What I also needed to do was:

    target ‘ProjectTests’ do
        shared_pods // I needed to add this line as well. Since this line included the needed 'MGSwipeTableCell' framework 
        pod ‘Nimble’, ‘~> 4.0.0’
        pod ’Quick’
    end
    

    So a possible reason would be that in your podfile you didn't add them correctly, just be sure that the framework is added into the necessary targets.

提交回复
热议问题