Comments (10)
Yes, I think there were some errors on the Xcode native platform. I got it sorted now, thank you very much for your help!
from aepsdk-react-native.
You followed this
https://github.com/adobe/aepsdk-react-native
(https://github.com/adobe/aepsdk-react-native#ios-development)
and
https://github.com/adobe/aepsdk-react-native/tree/main/packages/core
Have you
import { MobileCore } from '@adobe/react-native-aepcore' ?
https://github.com/adobe/aepsdk-react-native/tree/main/packages/core#importing-the-mobile-core-package
from aepsdk-react-native.
Hi. Yes, I did follow the instructions in the links you sent - added the configurations in both AppDelegate.h and AppDelegate.mm and imported the package the way as you mentioned. I got the error on both M1 and M2 Mac laptops. Meanwhile, I am able to run the sample app without any error.
from aepsdk-react-native.
You need to add import { MobileCore } from '@adobe/react-native-aepcore' to your React Native side of the code, not on the Native platform code.
Similar to the sample app here - https://github.com/adobe/aepsdk-react-native/blob/main/apps/AEPSampleApp/extensions/CoreView.tsx#L15
Did you do that?
from aepsdk-react-native.
Yes, I imported the package in a tsx view file, just like the sample app.
from aepsdk-react-native.
Is it possible to share your sample project, we can take a look?
from aepsdk-react-native.
Sure, that would be really helpful. I created a new repo using react-native-cli (https://github.com/Issactoto/adobe-analytics-test/tree/main). I just changed all the files accordingly as mentioned above and the function is used in App.tsx. I am using Yarn and IOS 17.2 for your information. Thanks!
from aepsdk-react-native.
@Issactoto
When I tried to build the repo you provided in Xcode, I saw errors which can be resolved with these two known workaround:
#247 (comment)
#263 (comment)
post_install do |installer|
# https://github.com/facebook/react-native/blob/main/packages/react-native/scripts/react_native_pods.rb#L197-L202
react_native_post_install(
installer,
config[:reactNativePath],
:mac_catalyst_enabled => false
)
installer.pods_project.targets.each do |t|
if t.name.start_with?("AEP")
t.build_configurations.each do |bc|
bc.build_settings['OTHER_SWIFT_FLAGS'] = '$(inherited) -no-verify-emitted-module-interface'
end
end
end
end
end
Please give them a try and see if you can build.
These are for iOS.
Did you have the issue on Android?
from aepsdk-react-native.
Thank you very much for the reply and solution. It works for the new repo I shared earlier. However, I am actually using a monorepo for the project I am developing and I am still facing the same error. Unfortunately, I am unable to share the code here. Do you happen to know if there are any specific changes that need to be made in this context? Additionally, I want to note that I don't experience any problems when running the code on Android.
from aepsdk-react-native.
For the original log, we thought it is possible due to the import statement in the react native side.
import { MobileCore } from '@adobe/react-native-aepcore'
This error is located at:
in App
in RCTView (created by View)
in View (created by AppContainer)
in RCTView (created by View)
in View (created by AppContainer)
in AppContainer
But it seems like you have that correctly in the sample app you shared.
If using the same react native code and Android platform is working, then the issue is on the iOS side.
Have you tried to run the iOS app from the Xcode and see if there is any other error shown on the Xcode native platform? Or you can monitor the logs in the Xcode debug windows.
from aepsdk-react-native.
Related Issues (20)
- Error: Use of '@import' when C++ modules are disabled, consider using -fmodules and -fcxx-modules HOT 4
- Remove unused lines in .npmignore file in each packages HOT 1
- Issue with building for ios framework 13.0 HOT 5
- React Native iOS - Underlying Objective-C module 'AEPRulesEngine' not found HOT 7
- Broken Android build: Non-pinned native packages result in dependency which is not yet published HOT 9
- What is the alternative for ACPAnalytics.sendQueuedHits() in AEP packages? HOT 3
- React native getExperienceCloudId returns time out error. HOT 9
- "react-native run-ios" failed on CI HOT 2
- React Native Messaging release testing
- How can I setup cusPreferredLanguage HOT 12
- Issues Imports/AppDelegate file HOT 2
- [Edge] Add Support for Datastream Config Override Feature
- ACP to AEP ReactNative Migration failling HOT 3
- Build fails on gradle@8 - missing namespace HOT 17
- Xcode 15 failed to verify module interface of AEPRulesEngine; textual interface may be broken HOT 2
- [Request] Add support for NativeScript - aepsdk-nativescript HOT 3
- IOS build fails: underlying Objective-C module 'AEPServices' not found HOT 1
- [Edge Bridge - Android] Test to verify new data format is being used after updating to version to Android v3.0.0 HOT 1
- [Edge Bridge - iOS] Test to verify new data format is being used after updating to version to iOS v5.0.0 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from aepsdk-react-native.