Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

'WebEngage/WebEngage.h' file not found #8

Closed
uc-asa opened this issue Sep 11, 2019 · 16 comments
Closed

'WebEngage/WebEngage.h' file not found #8

uc-asa opened this issue Sep 11, 2019 · 16 comments
Assignees
Labels
bug Something isn't working

Comments

@uc-asa
Copy link

uc-asa commented Sep 11, 2019

I just updated my react native project with RN 0.59.9. After updating its showing 'WebEngage/WebEngage.h' file not found.

I tried many things but fails.

Team, could you help please with this.

@ygit
Copy link
Contributor

ygit commented Sep 11, 2019

@uc-asa Can you share more details on your integration?
Also, can you share your Podfile, Podfile.lock, Package.json, AppDelegate.{h,m} files?

@ygit
Copy link
Contributor

ygit commented Sep 11, 2019

@uc-asa Awaiting your reply.

@uc-asa
Copy link
Author

uc-asa commented Sep 13, 2019

PodFile

Uncomment the next line to define a global platform for your project

platform :ios, '9.0'
target 'Saudiology' do

Uncomment the next line if you're using Swift or would like to use dynamic frameworks

use_frameworks!

Pods for MyApp

pod 'React', :path => '../node_modules/react-native', :subspecs => [
'Core',
'CxxBridge',
'DevSupport',
'RCTText',
'RCTImage',
'RCTNetwork',
'RCTWebSocket',
'RCTSettings',
'RCTAnimation',
'RCTLinkingIOS',
# Add any other subspecs you want to use in your project
# Remove any subspecs you don't want to use in your project
]

pod "yoga", :path => "../node_modules/react-native/ReactCommon/yoga"
pod 'DoubleConversion', :podspec => '../node_modules/react-native/third-party-podspecs/DoubleConversion.podspec'
pod 'glog', :podspec => '../node_modules/react-native/third-party-podspecs/glog.podspec'
pod 'Folly', :podspec => '../node_modules/react-native/third-party-podspecs/Folly.podspec'

pod 'react-native-webengage', :path => '../node_modules/react-native-webengage'

RNFirebase

pod 'RNFirebase', :path => '../node_modules/react-native-firebase/ios'

end

target 'MyApp-tvOSTests' do
inherit! :search_paths

Pods for testing

pod 'react-native-image-picker', :path => '../node_modules/react-native-image-picker'

pod 'react-native-fetch-blob', :path => '../node_modules/react-native-fetch-blob'

pod 'react-native-netinfo', :path => '../node_modules/@react-native-community/netinfo'

pod 'react-native-webview', :path => '../node_modules/react-native-webview'

pod 'RNCAsyncStorage', :path => '../node_modules/@react-native-community/async-storage'

end

target 'MyApp' do
inherit! :search_paths

Pods for testing

end

target 'MyApp-tvOS' do

Uncomment the next line if you're using Swift or would like to use dynamic frameworks

use_frameworks!

Pods for MyApp-tvOS

target 'MyApp-tvOSTests' do

inherit! :search_paths

# Pods for testing

end

end

target 'NotificationService' do
platform :ios, '10.0'
pod 'WebEngageBannerPush'
end

target 'NotificationViewController' do
platform :ios, '10.0'
pod 'WebEngageAppEx/ContentExtension'
end
post_install do |installer|
installer.pods_project.targets.each do |target|
if target.name == "React"
target.remove_from_project
end
end
end

@uc-asa
Copy link
Author

uc-asa commented Sep 13, 2019

Look at the screenshot, the error is not showing in my app's AppDelegate files.

Screenshot 2019-09-13 at 10 45 25 AM

@uc-asa
Copy link
Author

uc-asa commented Sep 13, 2019

#PodFile.lock

PODS:

  • boost-for-react-native (1.63.0)
  • Crashlytics (3.14.0):
    • Fabric (~> 1.10.2)
  • DoubleConversion (1.1.6)
  • Fabric (1.10.2)
  • Firebase/Core (6.8.1):
    • Firebase/CoreOnly
    • FirebaseAnalytics (= 6.1.1)
  • Firebase/CoreOnly (6.8.1):
    • FirebaseCore (= 6.2.3)
  • FirebaseAnalytics (6.1.1):
    • FirebaseCore (~> 6.2)
    • FirebaseInstanceID (~> 4.2)
    • GoogleAppMeasurement (= 6.1.1)
    • GoogleUtilities/AppDelegateSwizzler (~> 6.0)
    • GoogleUtilities/MethodSwizzler (~> 6.0)
    • GoogleUtilities/Network (~> 6.0)
    • "GoogleUtilities/NSData+zlib (~> 6.0)"
    • nanopb (~> 0.3)
  • FirebaseCore (6.2.3):
    • FirebaseCoreDiagnostics (~> 1.0)
    • FirebaseCoreDiagnosticsInterop (~> 1.0)
    • GoogleUtilities/Environment (~> 6.2)
    • GoogleUtilities/Logger (~> 6.2)
  • FirebaseCoreDiagnostics (1.0.1):
    • FirebaseCoreDiagnosticsInterop (~> 1.0)
    • GoogleDataTransportCCTSupport (~> 1.0)
    • GoogleUtilities/Environment (~> 6.2)
    • GoogleUtilities/Logger (~> 6.2)
  • FirebaseCoreDiagnosticsInterop (1.0.0)
  • FirebaseInstanceID (4.2.5):
    • FirebaseCore (~> 6.0)
    • GoogleUtilities/Environment (~> 6.0)
    • GoogleUtilities/UserDefaults (~> 6.0)
  • Folly (2018.10.22.00):
    • boost-for-react-native
    • DoubleConversion
    • glog
  • glog (0.3.5)
  • GoogleAppMeasurement (6.1.1):
    • GoogleUtilities/AppDelegateSwizzler (~> 6.0)
    • GoogleUtilities/MethodSwizzler (~> 6.0)
    • GoogleUtilities/Network (~> 6.0)
    • "GoogleUtilities/NSData+zlib (~> 6.0)"
    • nanopb (~> 0.3)
  • GoogleDataTransport (1.2.0)
  • GoogleDataTransportCCTSupport (1.0.3):
    • GoogleDataTransport (~> 1.2)
    • nanopb
  • GoogleUtilities/AppDelegateSwizzler (6.2.5):
    • GoogleUtilities/Environment
    • GoogleUtilities/Logger
    • GoogleUtilities/Network
  • GoogleUtilities/Environment (6.2.5)
  • GoogleUtilities/Logger (6.2.5):
    • GoogleUtilities/Environment
  • GoogleUtilities/MethodSwizzler (6.2.5):
    • GoogleUtilities/Logger
  • GoogleUtilities/Network (6.2.5):
    • GoogleUtilities/Logger
    • "GoogleUtilities/NSData+zlib"
    • GoogleUtilities/Reachability
  • "GoogleUtilities/NSData+zlib (6.2.5)"
  • GoogleUtilities/Reachability (6.2.5):
    • GoogleUtilities/Logger
  • GoogleUtilities/UserDefaults (6.2.5):
    • GoogleUtilities/Logger
  • nanopb (0.3.901):
    • nanopb/decode (= 0.3.901)
    • nanopb/encode (= 0.3.901)
  • nanopb/decode (0.3.901)
  • nanopb/encode (0.3.901)
  • React (0.59.9):
    • React/Core (= 0.59.9)
  • react-native-fetch-blob (0.10.6):
    • React/Core
  • react-native-netinfo (4.1.5):
    • React
  • react-native-webengage (1.1.1):
    • React
    • WebEngage
  • react-native-webview (6.9.0):
    • React
  • React/Core (0.59.9):
    • yoga (= 0.59.9.React)
  • React/CxxBridge (0.59.9):
    • Folly (= 2018.10.22.00)
    • React/Core
    • React/cxxreact
    • React/jsiexecutor
  • React/cxxreact (0.59.9):
    • boost-for-react-native (= 1.63.0)
    • DoubleConversion
    • Folly (= 2018.10.22.00)
    • glog
    • React/jsinspector
  • React/DevSupport (0.59.9):
    • React/Core
    • React/RCTWebSocket
  • React/fishhook (0.59.9)
  • React/jsi (0.59.9):
    • DoubleConversion
    • Folly (= 2018.10.22.00)
    • glog
  • React/jsiexecutor (0.59.9):
    • DoubleConversion
    • Folly (= 2018.10.22.00)
    • glog
    • React/cxxreact
    • React/jsi
  • React/jsinspector (0.59.9)
  • React/RCTAnimation (0.59.9):
    • React/Core
  • React/RCTBlob (0.59.9):
    • React/Core
  • React/RCTImage (0.59.9):
    • React/Core
    • React/RCTNetwork
  • React/RCTLinkingIOS (0.59.9):
    • React/Core
  • React/RCTNetwork (0.59.9):
    • React/Core
  • React/RCTSettings (0.59.9):
    • React/Core
  • React/RCTText (0.59.9):
    • React/Core
  • React/RCTWebSocket (0.59.9):
    • React/Core
    • React/fishhook
    • React/RCTBlob
  • RNCAsyncStorage (1.6.1):
    • React
  • RNFirebase (5.5.6):
    • Firebase/Core
    • React
    • RNFirebase/Crashlytics (= 5.5.6)
  • RNFirebase/Crashlytics (5.5.6):
    • Crashlytics
    • Fabric
    • Firebase/Core
    • React
  • WebEngage (4.9.6):
    • WebEngage/Xcode10 (= 4.9.6)
  • WebEngage/Xcode10 (4.9.6)
  • WebEngageAppEx/ContentExtension (0.5.0):
    • WebEngageAppEx/CoreApi
  • WebEngageAppEx/CoreApi (0.5.0)
  • WebEngageBannerPush (0.5.0)
  • yoga (0.59.9.React)

DEPENDENCIES:

  • DoubleConversion (from ../node_modules/react-native/third-party-podspecs/DoubleConversion.podspec)
  • Folly (from ../node_modules/react-native/third-party-podspecs/Folly.podspec)
  • glog (from ../node_modules/react-native/third-party-podspecs/glog.podspec)
  • react-native-fetch-blob (from ../node_modules/react-native-fetch-blob)
  • "react-native-netinfo (from ../node_modules/@react-native-community/netinfo)"
  • react-native-webengage (from ../node_modules/react-native-webengage)
  • react-native-webview (from ../node_modules/react-native-webview)
  • React/Core (from ../node_modules/react-native)
  • React/CxxBridge (from ../node_modules/react-native)
  • React/DevSupport (from ../node_modules/react-native)
  • React/RCTAnimation (from ../node_modules/react-native)
  • React/RCTImage (from ../node_modules/react-native)
  • React/RCTLinkingIOS (from ../node_modules/react-native)
  • React/RCTNetwork (from ../node_modules/react-native)
  • React/RCTSettings (from ../node_modules/react-native)
  • React/RCTText (from ../node_modules/react-native)
  • React/RCTWebSocket (from ../node_modules/react-native)
  • "RNCAsyncStorage (from ../node_modules/@react-native-community/async-storage)"
  • RNFirebase (from ../node_modules/react-native-firebase/ios)
  • WebEngageAppEx/ContentExtension
  • WebEngageBannerPush
  • yoga (from ../node_modules/react-native/ReactCommon/yoga)

SPEC REPOS:
trunk:
- boost-for-react-native
- Crashlytics
- Fabric
- Firebase
- FirebaseAnalytics
- FirebaseCore
- FirebaseCoreDiagnostics
- FirebaseCoreDiagnosticsInterop
- FirebaseInstanceID
- GoogleAppMeasurement
- GoogleDataTransport
- GoogleDataTransportCCTSupport
- GoogleUtilities
- nanopb
- WebEngage
- WebEngageAppEx
- WebEngageBannerPush

EXTERNAL SOURCES:
DoubleConversion:
:podspec: "../node_modules/react-native/third-party-podspecs/DoubleConversion.podspec"
Folly:
:podspec: "../node_modules/react-native/third-party-podspecs/Folly.podspec"
glog:
:podspec: "../node_modules/react-native/third-party-podspecs/glog.podspec"
React:
:path: "../node_modules/react-native"
react-native-fetch-blob:
:path: "../node_modules/react-native-fetch-blob"
react-native-netinfo:
:path: "../node_modules/@react-native-community/netinfo"
react-native-webengage:
:path: "../node_modules/react-native-webengage"
react-native-webview:
:path: "../node_modules/react-native-webview"
RNCAsyncStorage:
:path: "../node_modules/@react-native-community/async-storage"
RNFirebase:
:path: "../node_modules/react-native-firebase/ios"
yoga:
:path: "../node_modules/react-native/ReactCommon/yoga"

SPEC CHECKSUMS:
boost-for-react-native: 39c7adb57c4e60d6c5479dd8623128eb5b3f0f2c
Crashlytics: 540b7e5f5da5a042647227a5e3ac51d85eed06df
DoubleConversion: bb338842f62ab1d708ceb63ec3d999f0f3d98ecd
Fabric: 706c8b8098fff96c33c0db69cbf81f9c551d0d74
Firebase: 9cbe4e5b5eaafa05dc932be58b7c8c3820d71e88
FirebaseAnalytics: 843c7f64a8f9c79f0d03281197ebe7bb1d58d477
FirebaseCore: e9d9bd1dae61c1e82bc1e0e617a9d832392086a0
FirebaseCoreDiagnostics: 4c04ae09d0ab027c30179828c6bb47764df1bd13
FirebaseCoreDiagnosticsInterop: 6829da2b8d1fc795ff1bd99df751d3788035d2cb
FirebaseInstanceID: 550df9be1f99f751d8fcde3ac342a1e21a0e6c42
Folly: de497beb10f102453a1afa9edbf8cf8a251890de
glog: aefd1eb5dda2ab95ba0938556f34b98e2da3a60d
GoogleAppMeasurement: 86a82f0e1f20b8eedf8e20326530138fd71409de
GoogleDataTransport: 8f9897b8e073687f24ca8d3c3a8013dec7d2d1cc
GoogleDataTransportCCTSupport: 51134d81fca795c60cc247d1cb6af63c3d67b8d8
GoogleUtilities: e7dc37039b19df7fe543479d3e4a02ac8d11bb69
nanopb: 2901f78ea1b7b4015c860c2fdd1ea2fee1a18d48
React: a86b92f00edbe1873a63e4a212c29b7a7ad5224f
react-native-fetch-blob: 2bef9be702de8726f4d7bf58d2345579aaaee60d
react-native-netinfo: 0e563248a4b9a99c33ec29bd03c2d50767db22a6
react-native-webengage: ce9d42fac6385108b0245ef06e0a926697a38db4
react-native-webview: 2d8de2be422f0f8b9ba38db3f013f9ebfdb9b78f
RNCAsyncStorage: 2e2e3feb9bdadc752a026703d8c4065ca912e75a
RNFirebase: ac0de8b24c6f91ae9459575491ed6a77327619c6
WebEngage: 66d21c1cbf61d93d898a010e3c95eae712202edc
WebEngageAppEx: 9ff48d10f34add071dcf06314d37f9d7a8f1c695
WebEngageBannerPush: f6a58fbeb4d9f04d5ca9cc381e3ee521b70c4205
yoga: 03ff42a6f223fb88deeaed60249020d80c3091ee

PODFILE CHECKSUM: 8a31f18a0f169f20bff030375e87b0fc63874a62

COCOAPODS: 1.8.0.beta.2

@ygit
Copy link
Contributor

ygit commented Sep 16, 2019

@uc-asa We are debugging this, will get back to you shortly.

@subramanyaRB
Copy link

@ygit, I'm also facing the same issue, I'm using react-native-webengage v1.1.1, react-native v0.59.1

@Girish2015
Copy link

Facing the same issue. Unable to release updates to our app because of this error. Please resolve it fast.
react-native v0.59.9
react-native-webengage v1.1.1

@rdickert
Copy link

rdickert commented Sep 24, 2019

Could this be a result of an upgrade to xcode 11?

I have a branch on RN 0.59.8 that was building fine, but now does not. It worked before I got xcode 11 as an automatic update. No guarantee this is the cause, but it is known to cause some problems with RN (see this issue), so perhaps this module is also affected in some way? RN had to release a fix as part of 0.59.9.

@uc-asa
Copy link
Author

uc-asa commented Sep 25, 2019

Hey,

I did some hack, I removed the reference of RNWebenage.xcodepro from my project's library and removed RNWebengage.a files from the binary section under build phase and then

pod install
Clean build and rebuild.

Works for me.

@ygit
Copy link
Contributor

ygit commented Sep 25, 2019

@rdickert Does the same branch work on Xcode 10 for you?
It has been working fine for us throughout.
Probably the issue is somewhere between the differences in clients & our Build environment i.e. Xcode or Mac version, CocoaPods version, using New or Old Swift Build System, etc

@ygit ygit self-assigned this Sep 25, 2019
@ygit ygit added the bug Something isn't working label Sep 25, 2019
@rdickert
Copy link

@ygit I downgraded xcode, and the problem persisted, so I went a little deeper. The change that actually broke the branch came when I was merging a large feature branch. It had a merge conflict in package-lock.json, so I was guessing that something happened in a version change when I addressed that. However, a look at the package-lock.json doesn't show a change to webengage. Our package.json has

"react-native-webengage": "^1.0.4"

and the package-lock for that version shows

    "react-native-webengage": {
      "version": "1.0.6",
      "resolved": "https://registry.npmjs.org/react-native-webengage/-/react-native-webengage-1.0.6.tgz",
      "integrity": "sha512-okDpETJPmoKzRv9XbVfuWdDe18g/ULezYjusidaVSsdxztBijGikplQneTwsa+2uFibeYAUvhvrrBgzEN/Mblg=="
    },

Unfortunately for this discussion, I learned that we aren't using webengage anymore, so my fix was to remove it altogether, but hopefully this info will help a little.

@ygit
Copy link
Contributor

ygit commented Oct 1, 2019

@uc-asa We have released a new version of iOS SDK: 4.9.8
Updating to this version should resolve the issue.

@ygit
Copy link
Contributor

ygit commented Oct 9, 2019

As mentioned earlier, updating to WebEngage iOS SDK version 4.9.8 or above resolves this issue.

@ygit ygit closed this as completed Oct 9, 2019
@anujmpec
Copy link

anujmpec commented Nov 9, 2022

Still facing issue in release/archieve build - "react-native-webengage": "^1.2.9", "react": "^17.0.2",
"react-native": "0.64.2",

@sagar-tomar-groww
Copy link

Try updating to XCode14. Solved the issue for us.
JFI, XCode14 needs ENABLE_BITCODE = NO

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

7 participants