Troubleshooting
React Native Plugin 3.x > Troubleshooting
TouchableOpacity
causes click event to fail on Android
TouchableOpacity
causes click event to fail on AndroidIssue
When wrapping a <TBLClassicUnit>
within <TouchableOpacity>
, the click event fails on certain Android devices.
Resolution
To resolve this issue, use <TouchableWithoutFeedback>
in place of <TouchableOpacity>
.
iPhone simulator with Apple silicon
Issue
In some cases, when running the iPhone simulator with an Apple silicon machine, Xcode throws the following error:
building for iOS Simulator, but linking in dylib built for iOS, file '../TaboolaSDK.framework/TaboolaSDK' for architecture arm64
This issue affects the simulator only - not real devices.
Resolution
To work around this issue, add arm64
to the excluded architectures for both your project and your Podfile.
Step 1: Update your project settings
Using Xcode:
- Select the project within the project navigator (top, left).
- Select the
Build Settings
tab (right). Make sure that theAll
tab (just below) is also selected. - Under
Architectures
, locate theExcluded Architectures
node. - Next to the
Debug
orRelease
node, click on the+
icon to add a new exclusion:- For the key, select
Any iOS Simulator SDK
. - For the value, type in
arm64
.
- For the key, select
Depending on your needs, add an exclusion under Debug or Release - or both.
- Scroll down to the
Build Options
section, and locate theValidate Workspace
node.- Set the value to
Yes
.
- Set the value to
Depending on your needs, set the value for Debug or Release - or both.
Step 2: Update your Podfile
Navigate to your project's ios
directory, and edit your Podfile to include the following:
post_install do |installer|
installer.pods_project.build_configurations.each do |config|
config.build_settings["EXCLUDED_ARCHS[sdk=iphonesimulator*]"] = "arm64"
end
end
Additional steps
If the above steps do not resolve the problem, you may need to update your existing pods (a sample script is provided below) - and thenclean
and rebuild
your project.
rm -rf ~/Library/Developer/Xcode/DerivedData/
pod deintegrate
pod update
The sample script
- Removes all build cache from Xcode.
- Updates all pods across your project.
Re-rendering
Preventing a memory leak
If you re-render a component that contains Taboola units, make sure to also re-create the Taboola page.
Failure to do so can cause a memory leak.
Updated 4 months ago