我在swift 3中制作一个吊舱,当我尝试抓取项目时,我会在构建中有一些错误。
我正在使用Xcode 8.2(beta)和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.
对不起,我没有代表将其添加为评论。
您收到的错误使用 - Verbose以获取更多信息。您应该重新运行命令添加--verbose
(如果没有明确指出您的问题,请共享该输出)。这将为发生的错误提供更多细节。