Nit*_*ish 3 ios cocoapods swift swift-playground rx-swift
我创建了一个新项目并使用 pods 来安装RxSwift. 然后我创建了一个游乐场并编写了以下代码:
import UIKit
import RxSwift
import PlaygroundSupport
var name = "hello"
let names = Variable(["Good"])
Run Code Online (Sandbox Code Playgroud)
但控制台显示此错误:
Playground 执行失败:
错误:无法查找符号:__
T07RxSwift8VariableCACyxGxcfC __T07RxSwift8VariableCMa
试试这个Podfile:
platform :ios, '11.0'
target 'RxSwiftPlayground' do
use_frameworks!
# Pods for RxSwiftPlayground
pod 'RxSwift', '~> 4.0'
end
post_install do |installer|
installer.pods_project.build_configurations.each do |config|
config.build_settings.delete('CODE_SIGNING_ALLOWED')
config.build_settings.delete('CODE_SIGNING_REQUIRED')
end
installer.pods_project.targets.each do |target|
target.build_configurations.each do |config|
config.build_settings['CONFIGURATION_BUILD_DIR'] = '$PODS_CONFIGURATION_BUILD_DIR'
end
end
end
Run Code Online (Sandbox Code Playgroud)
或者
来自https://github.com/ReactiveX/RxSwift/issues/1660
| 归档时间: |
|
| 查看次数: |
852 次 |
| 最近记录: |