Xcode 7 can't find header files from framework

后端 未结 8 1338
伪装坚强ぢ
伪装坚强ぢ 2021-02-03 19:03

I\'m trying to add PassSlot into my project, but it says it can\'t find the .h file. I\'m following everything correctly from here: https://github.com/passslot/passslot-ios-sdk<

8条回答
  •  花落未央
    2021-02-03 19:12

    Just hit this problem myself after making a new test target in Objective-C.

    One thing to remember is that under some circumstances, each test target must be listed in the Podfile with pod dependencies. If the Podfile only associates the project with the pods, it may not find the pod header files.

    Here's an example of a more complex Podfile from the cocoapods docs.

    target 'MyApp' do
      pod 'ObjectiveSugar', '~> 0.5'
    
      target "MyAppTests" do
        inherit! :search_paths
        pod 'OCMock', '~> 2.0.1'
      end
    end
    
    post_install do |installer|
      installer.pods_project.targets.each do |target|
        puts "#{target.name}"
      end
    end
    

提交回复
热议问题