Xcode 插件模板 cocoapods

Xcode plugin template cocoapods

我想创建 Xcode 插件,我从 Alcatraz 选择 Xcode Plugin Template,然后我关闭项目添加 Podfile 打开工作区并尝试构建我每次都收到错误消息:

ld: library not found for -lDTXcodeUtils
clang: error: linker command failed with exit code 1 (use -v to see invocation)

这是完整的输出:

Ld /Users/jakubmazur/Library/Application\ Support/Developer/Shared/Xcode/Plug-ins/CreateFilesPlugin.xcplugin/Contents/MacOS/CreateFilesPlugin normal x86_64 cd /Users/jakubmazur/Developer/CreateFilesPlugin export MACOSX_DEPLOYMENT_TARGET=10.10 /Users/jakubmazur/Desktop/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -arch x86_64 -bundle -isysroot /Users/jakubmazur/Desktop/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk -L/Users/jakubmazur/Library/Developer/Xcode/DerivedData/CreateFilesPlugin-dmzpluimftctcqhbkndjiknqtjnz/Build/Products/Debug -F/Users/jakubmazur/Library/Developer/Xcode/DerivedData/CreateFilesPlugin-dmzpluimftctcqhbkndjiknqtjnz/Build/Products/Debug -filelist /Users/jakubmazur/Library/Developer/Xcode/DerivedData/CreateFilesPlugin-dmzpluimftctcqhbkndjiknqtjnz/Build/Intermediates/CreateFilesPlugin.build/Debug/CreateFilesPlugin.build/Objects-normal/x86_64/CreateFilesPlugin.LinkFileList -mmacosx-version-min=10.10 -ObjC -lDTXcodeUtils -lXcodeEditor -fobjc-arc -fobjc-link-runtime -framework AppKit -framework Foundation -lPods -Xlinker -dependency_info -Xlinker /Users/jakubmazur/Library/Developer/Xcode/DerivedData/CreateFilesPlugin-dmzpluimftctcqhbkndjiknqtjnz/Build/Intermediates/CreateFilesPlugin.build/Debug/CreateFilesPlugin.build/Objects-normal/x86_64/CreateFilesPlugin_dependency_info.dat -o /Users/jakubmazur/Library/Application\ Support/Developer/Shared/Xcode/Plug-ins/CreateFilesPlugin.xcplugin/Contents/MacOS/CreateFilesPlugin

ld: library not found for -lDTXcodeUtils clang: error: linker command failed with exit code 1 (use -v to see invocation)

知道我应该设置什么吗?

播客文件:

source 'https://github.com/CocoaPods/Specs.git'
platform :osx

pod "DTXcodeUtils"

执行以下步骤。这是一个解决方法。

  1. 删除所有方案并通过单击自动创建方案添加。(pods 方案将在重新创建后进行检查,需要检查它才能正常工作)。
  2. 然后从copy bundle resources中移除scheme文件(是否显示错误)
  3. 深层清洁和运行

它的构建对我来说没有任何错误,不确定它是否显示任何 运行 时间错误/异常