krzyzanowskim / OpenSSL

OpenSSL package for SwiftPM, CocoaPod, and Carthage, multiplatform
https://swift.best
Other
907 stars 334 forks source link

framework not found OpenSSL #121

Closed chj-damon closed 3 years ago

chj-damon commented 3 years ago

I tried to archive my react-native project, but it fails with this error: framework not found OpenSSL. image

Also, there's a warning: image

this is my 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, '11.0'

target 'rnTemplate' do
  config = use_native_modules!

  use_react_native!(
    :path => config[:reactNativePath],
    # to enable hermes on iOS, change `false` to `true` and then install pods
    :hermes_enabled => true
  )

  target 'rnTemplateTests' 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 the next line.
  use_flipper!()

  post_install do |installer|
    react_native_post_install(installer)
  end
end

and this is my package.json:

"dependencies": {
    "@react-native-async-storage/async-storage": "^1.15.4",
    "@react-native-community/masked-view": "^0.1.11",
    "@react-native-picker/picker": "^1.16.1",
    "@react-navigation/bottom-tabs": "^5.11.11",
    "@react-navigation/native": "^5.9.4",
    "@react-navigation/stack": "^5.14.5",
    "@shopify/restyle": "^1.4.0",
    "@td-design/react-native": "^3.1.2",
    "@td-design/react-native-echarts": "^1.0.0",
    "immer": "^9.0.2",
    "jotai": "^0.16.6",
    "rc-field-form": "^1.20.1",
    "react": "^17.0.2",
    "react-error-boundary": "^3.1.3",
    "react-native": "^0.64.1",
    "react-native-background-timer": "^2.4.1",
    "react-native-bootsplash": "^3.2.3",
    "react-native-config": "^1.4.2",
    "react-native-exception-handler": "^2.10.10",
    "react-native-fast-image": "^8.3.4",
    "react-native-gesture-handler": "^1.10.3",
    "react-native-keyboard-aware-scroll-view": "^0.9.3",
    "react-native-reanimated": "^2.1.0",
    "react-native-redash": "^16.0.11",
    "react-native-restart": "^0.0.22",
    "react-native-safe-area-context": "^3.2.0",
    "react-native-screens": "^3.2.0",
    "react-native-svg": "^12.1.1",
    "react-native-vector-icons": "^8.1.0",
    "react-native-webview": "^11.6.2",
    "swr": "^0.5.6",
    "umi-request": "^1.3.6"
  },

Do you have any idea why it will fail on archive, but it actually works on build.

chj-damon commented 3 years ago

there's a reproduce repo: https://github.com/thundersdata-frontend/rn-template

chj-damon commented 3 years ago

image

fixed in this way, But I don't know if it's the right way. the bare project I create using react-native init doesn't have this issue.

krzyzanowskim commented 3 years ago

Normally when Cocoapods fail to integrate properly, this helps pod deintegrate pod install

it looks like something around that given the bare react-native init doesn't have this issue.