我正在Swift 3中创建一个pod,当我尝试lint我的项目时,我在构建时遇到了一些错误。
我正在使用Xcode 8.2(测试版)和macOS Sierra。
这是我得到的错误:
..................
ld: symbol(s) not found for architecture i386
clang: error: linker command failed with exit code 1 (use -v to see invocation)
** BUILD FAILED **
The following build commands failed:
Ld /Users/Me/Library/Developer/Xcode/DerivedData/App-bfgilsvmbnmybfcdfnlsszcgntbe/Build/Intermediates/Pods.build/Release-iphonesimulator/LocalPusher.build/Objects-normal/i386/LocalPusher normal i386
(1 failure)
-> LocalPusher (1.0.0)
[!] LocalPusher did not pass validation, due to 1 error.
You can use the `--no-clean` option to inspect any issue.
- ERROR | [iOS] xcodebuild: Returned an unsuccessful exit code. You can use `--verbose` for more information.
- NOTE | xcodebuild: warning: target specifies SWIFT_VERSION = '3.0', but it is overridden by TOOLCHAINS = 'swift'
- NOTE | [iOS] xcodebuild: ld: warning: Auto-Linking supplied '/Library/Developer/Toolchains/swift-3.0-RELEASE.xctoolchain/usr/lib/swift/iphonesimulator/libswiftFoundation.dylib', file was built for x86_64 which is not the architecture being linked (i386): /Library/Developer/Toolchains/swift-3.0-RELEASE.xctoolchain/usr/lib/swift/iphonesimulator/libswiftFoundation.dylib
- NOTE | [iOS] xcodebuild: ld: warning: Auto-Linking supplied '/Library/Developer/Toolchains/swift-3.0-RELEASE.xctoolchain/usr/lib/swift/iphonesimulator/libswiftObjectiveC.dylib', file was built for x86_64 which is not the architecture being linked (i386): /Library/Developer/Toolchains/swift-3.0-RELEASE.xctoolchain/usr/lib/swift/iphonesimulator/libswiftObjectiveC.dylib
- NOTE | [iOS] xcodebuild: ld: warning: Auto-Linking supplied '/Library/Developer/Toolchains/swift-3.0-RELEASE.xctoolchain/usr/lib/swift/iphonesimulator/libswiftDispatch.dylib', file was built for x86_64 which is not the architecture being linked (i386): /Library/Developer/Toolchains/swift-3.0-RELEASE.xctoolchain/usr/lib/swift/iphonesimulator/libswiftDispatch.dylib
- NOTE | [iOS] xcodebuild: ld: warning: Auto-Linking supplied '/Library/Developer/Toolchains/swift-3.0-RELEASE.xctoolchain/usr/lib/swift/iphonesimulator/libswiftCore.dylib', file was built for x86_64 which is not the architecture being linked (i386): /Library/Developer/Toolchains/swift-3.0-RELEASE.xctoolchain/usr/lib/swift/iphonesimulator/libswiftCore.dylib
- NOTE | [iOS] xcodebuild: ld: warning: Auto-Linking supplied '/Library/Developer/Toolchains/swift-3.0-RELEASE.xctoolchain/usr/lib/swift/iphonesimulator/libswiftCoreGraphics.dylib', file was built for x86_64 which is not the architecture being linked (i386): /Library/Developer/Toolchains/swift-3.0-RELEASE.xctoolchain/usr/lib/swift/iphonesimulator/libswiftCoreGraphics.dylib
- NOTE | [iOS] xcodebuild: ld: warning: Auto-Linking supplied '/Library/Developer/Toolchains/swift-3.0-RELEASE.xctoolchain/usr/lib/swift/iphonesimulator/libswiftUIKit.dylib', file was built for x86_64 which is not the architecture being linked (i386): /Library/Developer/Toolchains/swift-3.0-RELEASE.xctoolchain/usr/lib/swift/iphonesimulator/libswiftUIKit.dylib
- NOTE | [iOS] xcodebuild: ld: warning: Auto-Linking supplied '/Library/Developer/Toolchains/swift-3.0-RELEASE.xctoolchain/usr/lib/swift/iphonesimulator/libswiftDarwin.dylib', file was built for x86_64 which is not the architecture being linked (i386): /Library/Developer/Toolchains/swift-3.0-RELEASE.xctoolchain/usr/lib/swift/iphonesimulator/libswiftDarwin.dylib
- NOTE | [iOS] xcodebuild: ld: warning: Auto-Linking supplied '/Library/Developer/Toolchains/swift-3.0-RELEASE.xctoolchain/usr/lib/swift/iphonesimulator/libswiftCoreImage.dylib', file was built for x86_64 which is not the architecture being linked (i386): /Library/Developer/Toolchains/swift-3.0-RELEASE.xctoolchain/usr/lib/swift/iphonesimulator/libswiftCoreImage.dylib
- NOTE | [iOS] xcodebuild: clang: error: linker command failed with exit code 1 (use -v to see invocation)
[!] LocalPusher did not pass validation, due to 1 error.
You can use the `--no-clean` option to inspect any issue.
答案 0 :(得分:0)
抱歉,我没有代表将此添加为评论。
您收到的错误提到--verbose以获取更多信息。
您应该重新运行添加--verbose
的命令(并分享该输出,如果这不能明确指出您的问题)。这将为正在发生的错误提供更多细节。