我想创建Xcode插件,我从Alcatraz中选择Xcode Plugin Template,然后我关闭项目添加Podfile打开工作区并尝试构建我每次都得到ann错误:
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 \ 支持/开发/共享/ Xcode中/插件/ CreateFilesPlugin.xcplugin /内容/ MacOS的/ CreateFilesPlugin 正常的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 /用户/ jakubmazur /库/开发商/ Xcode中/ DerivedData / CreateFilesPlugin-dmzpluimftctcqhbkndjiknqtjnz /编译/产品/调试 -F /用户/ jakubmazur /库/开发商/ Xcode中/ DerivedData / CreateFilesPlugin-dmzpluimftctcqhbkndjiknqtjnz /编译/产品/调试 -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:找不到-lDTXcodeUtils clang的库:错误:链接器命令 退出代码1失败(使用-v查看调用)
知道我应该怎么做才能做到这一点?
Podfile:
source 'https://github.com/CocoaPods/Specs.git'
platform :osx
pod "DTXcodeUtils"
答案 0 :(得分:2)
执行以下步骤。这是一个解决方法。
它的构建没有任何错误,不确定它是否显示任何运行时错误/异常