gpt4 book ai didi

ios - 奇怪的构建错误 : Facebook Swift SDK not building with Carthage in Blank project

转载 作者:行者123 更新时间:2023-11-28 11:43:56 24 4
gpt4 key购买 nike

  • 全新的 ios 项目
  • 文件夹中除了带有基本设置的空 View Controller 外什么都没有
  • touch Cartfile
  • 添加 github "facebook/Facebook-SDK-Swift" 到 Cartfile
  • 运行 carthage bootstrap --platform iOS --cache-builds
  • 收到以下错误消息:

*** Checking out Bolts-ObjC at "1.9.0"
*** Checking out Facebook-SDK-Swift at "0.4.0"
*** Checking out facebook-objc-sdk at "sdk-version-4.36.0"
*** No cache found for Bolts-ObjC, building with all downstream dependencies
*** xcodebuild output can be found in /var/folders/0p/lqn6hy6s1d9389yjr_1b8jnw0000gn/T/carthage-xcodebuild.RN4jiZ.log
*** Building scheme "Bolts-iOS" in Bolts.xcodeproj
*** Building scheme "Bolts-iOS-Dynamic" in Bolts.xcodeproj
*** Building scheme "FBSDKCoreKit-Dynamic" in FacebookSDK.xcworkspace
*** Building scheme "FBSDKCoreKit-Universal" in FacebookSDK.xcworkspace
Build Failed
Task failed with exit code 65:
/usr/bin/xcrun xcodebuild -workspace /Users/keitzer/src/test/Test/Carthage/Checkouts/facebook-objc-sdk/FacebookSDK.xcworkspace -scheme FBSDKCoreKit-Universal -configuration Release -derivedDataPath /Users/keitzer/Library/Caches/org.carthage.CarthageKit/DerivedData/10.0_10A255/facebook-objc-sdk/sdk-version-4.36.0 -sdk iphoneos ONLY_ACTIVE_ARCH=NO CODE_SIGNING_REQUIRED=NO CODE_SIGN_IDENTITY= CARTHAGE=YES archive -archivePath /var/folders/0p/lqn6hy6s1d9389yjr_1b8jnw0000gn/T/facebook-objc-sdk SKIP_INSTALL=YES GCC_INSTRUMENT_PROGRAM_FLOW_ARCS=NO CLANG_ENABLE_CODE_COVERAGE=NO STRIP_INSTALLED_PRODUCT=NO (launched in /Users/keitzer/src/test/Test/Carthage/Checkouts/facebook-objc-sdk)

This usually indicates that project itself failed to compile. Please check the xcodebuild log for more details: /var/folders/0p/lqn6hy6s1d9389yjr_1b8jnw0000gn/T/carthage-xcodebuild.RN4jiZ.log

知道为什么会发生这种情况吗?


  • 迦太基版本:0.31.1
  • Xcode 10,应用商店版本
  • macOS 10.14 Mojave

最佳答案

在我的例子中,是 SwiftLint (v. 0.29.3) 阻止了 Facebook Swift SDK 的构建。它是通过 Brew 安装在我的系统中的。

删除 SwiftLint 作为临时解决方案有所帮助。

附言要卸载所有版本的 SwiftLint,请在终端中运行此命令:

brew uninstall --force swiftlint

关于ios - 奇怪的构建错误 : Facebook Swift SDK not building with Carthage in Blank project,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/52876258/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com