【发布时间】:2021-05-14 22:30:02
【问题描述】:
我需要用 carthage 安装包https://github.com/socketio/socket.io-client-swift 使用 Xcode 12 项目。
我有一个 CartFile :
github "socketio/socket.io-client-swift" ~> 15.0.0
我试过这个命令:
carthage update --platform iOS --use-xcframeworks
我试试:
- 在我的主项目中将“仅构建架构”修改为“否”
- 在依赖“红蜘蛛”项目中将“仅构建架构”修改为“否”
但我总是有同样的错误:
CompileSwift normal i386 (in target 'SocketIO' from project 'Socket.IO-Client-Swift')
cd /Users/admin/Documents/test2/Carthage/Checkouts/socket.io-client-swift
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/swift -frontend -c /Users/admin/Documents/test2/Carthage/Checkouts/socket.io-client-swift/Source/SocketIO/Engine/SocketEngine.swi$
/Users/admin/Documents/test2/Carthage/Checkouts/socket.io-client-swift/Source/SocketIO/Engine/SocketEngine.swift:27:8: error: could not find module 'Starscream' for target 'i386-apple-ios-simulator'; found: arm64, armv7-$
import Starscream
也许我需要在一些环境或/和自定义文件中创建一个 ${ARCHS_STANDARD} ?
【问题讨论】:
标签: ios macos xcode12 carthage