我想将 AppleWatch-Extension 添加到我当前的 Projekt。我正在使用这个 podfile:
def shared_pods
pod 'RealmSwift', '2.0.2'
end
target 'Target-iOS' do
platform :ios, '9.0'
use_frameworks!
...
shared_pods
end
target 'Target-MensaWidget' do
platform :ios, '9.0'
use_frameworks!
shared_pods
end
target 'Watch Extension' do
platform :watchos, '2.0'
use_frameworks!
shared_pods
end
Run Code Online (Sandbox Code Playgroud)
之后pod install我会在我的控制台这样的警告:
[!] [Xcodeproj] Generated duplicate UUIDs:
Run Code Online (Sandbox Code Playgroud)
当我尝试构建项目时,出现此错误:
Undefined symbols for architecture i386:
"realm::BpTreeBase::replace_root(std::__1::unique_ptr<realm::Array, std::__1::default_delete<realm::Array> >)", referenced from:
Run Code Online (Sandbox Code Playgroud)
我还尝试在 Watch-Target 中使用 $(inherited)。
我正在使用 Xcode 7.3.1 和 pod 版本 0.39.0
有任何想法吗?
我有一个关于使用 avariable作为 IconPath 来设置的问题background-image: url()
<div style="background-image: url($iconPath)"></div>
Run Code Online (Sandbox Code Playgroud)
我不知道如何使用变量设置背景图像的 url?
我尝试过"",,''\"
有人有想法吗?