如何将Pod添加为目标?

 收藏

I created a pod(Rkeyboard) at GitHub. it was about to custom keyboard. when we want to add custom keyboard in project then it is necessary that we must create a target. But when I install the pod it doesn't create the target as i did not include any target in pod. Please tell me the way how to add pod as a target that can run with main target. The link of pod is https://github.com/dineshsharma1/Rkeyboard Any direction or help will appreciate. Thanks in advance

  1. 尝试使用安装程序编辑pod文件
  2. 试图编辑运行脚本
  3. 但没有成功
  4. 项目正在成功运行,但是由于目标而无法在设置中看到键盘
回复
  • 简单旳爱 回复

    转到您的Podfile并添加以下代码

    target 'TargetName' do
     // add any pods to be installed for target
    end
    

    Dont forget to pod install

    在执行上述所有步骤之前,您的XCode需要使目标与您在Podfile中提供的名称匹配。祝好运!