prscX / react-native-app-tour

React Native: Native App Tour Library
Apache License 2.0
640 stars 119 forks source link

ld: library not found for -lYoga #113

Open DimaBarokha opened 3 years ago

DimaBarokha commented 3 years ago

Have error when launch from Xcode

ld: library not found for -lYoga

Ld /Users/dimabarokha/Library/Developer/Xcode/DerivedData/Animations-drtnmnixltbjmjbemtmamdcashok/Build/Products/Debug-iphonesimulator/React-Core/React.framework/React normal (in target 'React-Core' from project 'Pods')
    cd /Users/dimabarokha/WebstormProjects/Animations/ios/Pods
    /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++ -target x86_64-apple-ios10.0-simulator -dynamiclib -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.2.sdk -L/Users/dimabarokha/Library/Developer/Xcode/DerivedData/Animations-drtnmnixltbjmjbemtmamdcashok/Build/Products/Debug-iphonesimulator/React-Core -F/Users/dimabarokha/Library/Developer/Xcode/DerivedData/Animations-drtnmnixltbjmjbemtmamdcashok/Build/Products/Debug-iphonesimulator/React-Core -F/Users/dimabarokha/Library/Developer/Xcode/DerivedData/Animations-drtnmnixltbjmjbemtmamdcashok/Build/Products/Debug-iphonesimulator/DoubleConversion -F/Users/dimabarokha/Library/Developer/Xcode/DerivedData/Animations-drtnmnixltbjmjbemtmamdcashok/Build/Products/Debug-iphonesimulator/Folly -F/Users/dimabarokha/Library/Developer/Xcode/DerivedData/Animations-drtnmnixltbjmjbemtmamdcashok/Build/Products/Debug-iphonesimulator/React-cxxreact -F/Users/dimabarokha/Library/Developer/Xcode/DerivedData/Animations-drtnmnixltbjmjbemtmamdcashok/Build/Products/Debug-iphonesimulator/React-jsi -F/Users/dimabarokha/Library/Developer/Xcode/DerivedData/Animations-drtnmnixltbjmjbemtmamdcashok/Build/Products/Debug-iphonesimulator/React-jsiexecutor -F/Users/dimabarokha/Library/Developer/Xcode/DerivedData/Animations-drtnmnixltbjmjbemtmamdcashok/Build/Products/Debug-iphonesimulator/React-jsinspector -F/Users/dimabarokha/Library/Developer/Xcode/DerivedData/Animations-drtnmnixltbjmjbemtmamdcashok/Build/Products/Debug-iphonesimulator/glog -filelist /Users/dimabarokha/Library/Developer/Xcode/DerivedData/Animations-drtnmnixltbjmjbemtmamdcashok/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/React-Core.build/Objects-normal/x86_64/React.LinkFileList -install_name @rpath/React.framework/React -Xlinker -rpath -Xlinker @executable_path/Frameworks -Xlinker -rpath -Xlinker @loader_path/Frameworks -dead_strip -Xlinker -object_path_lto -Xlinker /Users/dimabarokha/Library/Developer/Xcode/DerivedData/Animations-drtnmnixltbjmjbemtmamdcashok/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/React-Core.build/Objects-normal/x86_64/React_lto.o -Xlinker -export_dynamic -Xlinker -no_deduplicate -Xlinker -objc_abi_version -Xlinker 2 -stdlib\=libc++ -fobjc-arc -fobjc-link-runtime -lstdc++ -framework JavaScriptCore -framework cxxreact -framework folly -framework Foundation -framework glog -framework JavaScriptCore -framework jsi -framework jsinspector -framework jsireact -lYoga -Xlinker -no_adhoc_codesign -compatibility_version 1 -current_version 1 -Xlinker -dependency_info -Xlinker /Users/dimabarokha/Library/Developer/Xcode/DerivedData/Animations-drtnmnixltbjmjbemtmamdcashok/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/React-Core.build/Objects-normal/x86_64/React_dependency_info.dat -o /Users/dimabarokha/Library/Developer/Xcode/DerivedData/Animations-drtnmnixltbjmjbemtmamdcashok/Build/Products/Debug-iphonesimulator/React-Core/React.framework/React

PODFILE:

require_relative '../node_modules/react-native/scripts/react_native_pods'
require_relative '../node_modules/@react-native-community/cli-platform-ios/native_modules'

platform :ios, '10.0'

target 'Animations' do
  # ...unfortunately at this time that means you'll need to explicitly mark
  # transitive dependencies as being for debug build only as well:
  pod 'Flipper-DoubleConversion', :configuration => 'Debug'
  pod 'Flipper-Folly', :configuration => 'Debug'
  pod 'Flipper-Glog', :configuration => 'Debug'
  pod 'Flipper-PeerTalk', :configuration => 'Debug'
  pod 'CocoaLibEvent', :configuration => 'Debug'
  pod 'boost-for-react-native', :configuration => 'Debug'
  pod 'OpenSSL-Universal', :configuration => 'Debug'
  pod 'CocoaAsyncSocket', :configuration => 'Debug'
 use_native_modules!

  pod 'RNAppTour', :path => '../node_modules/react-native-app-tour/ios'

  use_frameworks!

  pod 'MaterialShowcase', :git => 'https://github.com/aromajoin/material-showcase-ios', :tag => '0.7.1'

  # Follow [Flipper iOS Setup Guidelines](https://fbflipper.com/docs/getting-started/ios-native)
  # This is required because iOSPhotoEditor is implemented using Swift and we have to use use_frameworks! in Podfile
  $static_framework = ['FlipperKit', 'Flipper', 'Flipper-Folly',
    'CocoaAsyncSocket', 'ComponentKit', 'Flipper-DoubleConversion',
    'Flipper-Glog', 'Flipper-PeerTalk', 'Flipper-RSocket', 'Yoga', 'YogaKit',
    'CocoaLibEvent', 'OpenSSL-Universal', 'boost-for-react-native']

  pre_install do |installer|
    Pod::Installer::Xcode::TargetValidator.send(:define_method, :verify_no_static_framework_transitive_dependencies) {}
    installer.pod_targets.each do |pod|
        if $static_framework.include?(pod.name)
          def pod.build_type;
            Pod::BuildType.static_library
          end
        end
      end
  end
  config = use_native_modules!

  use_react_native!(:path => config["reactNativePath"])

  target 'AnimationsTests' do
    inherit! :complete
    # Pods for testing
  end

  # Enables Flipper.
  #
  # Note that if you have use_frameworks! enabled, Flipper will not work and
  # you should disable these next few lines.
  use_flipper!
  post_install do |installer|
    flipper_post_install(installer)
  end
end

target 'Animations-tvOS' do
  # Pods for Animations-tvOS

  target 'Animations-tvOSTests' do
    inherit! :search_paths
    # Pods for testing
  end
end

RN Version: 0.63.4