Undefined Symbols for i386 Architecture with Realm for WatchOS

I want to add the AppleWatch extension to my current project. I am using this file:

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

After pod installI get this warning in my console:

[!] [Xcodeproj] Generated duplicate UUIDs:

When I try to create a project, I get this error:

Undefined symbols for architecture i386:
  "realm::BpTreeBase::replace_root(std::__1::unique_ptr<realm::Array, std::__1::default_delete<realm::Array> >)", referenced from:

I also tried using $ (inherited) in Watch-Target.

I'am Using Xcode 7.3.1 and pod version 0.39.0

Any ideas?

+4
source share

Source: https://habr.com/ru/post/1659386/


All Articles