Closed zhahaoyu closed 3 years ago
Hi, this error means that Smartlook is not properly installed. Could you try running pod install
in the ios
folder of your app manually?
I have done it multiple times, but it is not solving the problem. It is still complaining.
When I ran the debug build command npx react-native run-ios
, it worked perfectly fine and I was able to see the smartlook screen recording. But when I tried the release build command npx react-native run-ios --configuration Release
, I keep getting the above error.
Btw I have dead code stripping
enabled. Could this be related? I have seen some posts suggest that this option should be turned off, but the build fails completely once I turn it off. Even core react libraries would complain.
Hi @zhahaoyu ,
after the second look on the error logs, there is something seriously wrong with the release script or the Xcode project.
The platforms i386
and x86_64
, where the Smartlook is missing according to the logs you shared, are simulator-only platforms, and cannot be part of the released app. Thus it is all right they are not there. Why the npx react-native run-ios --configuration Release
requires them is not clear.
The standard way to release an iOS app is to archive it first using Xcode Product → Archive
menu and then sending it to the App Store using the Windows → Organiser
(should opens automatically after the archiving is done).
Closing abandoned issue.
Platform
iOS
Technology
React Native
Build instructions [optional]
React Native version - 0.63.2
Rendering [optional]
default rendering
Affected devices [optional]
Smartlook SDK version
Smartlook (1.7.1)
Summary
Trying to build the release version of the app based on steps here https://reactnative.dev/docs/publishing-to-app-store. The build script complained the following errors:
and
Steps to reproduce [optional]
npx react-native run-ios --configuration Release
Example Project [optional]
Relevant logs and/or screenshots
Pod file