react-native-tiktok
react-native-tiktok copied to clipboard
iOS Build Issue
Hey @Lg0gs, I am getting the below issue when I run the build from XCode. Can you help me to sort out this one
'TikTokOpenSDKShareRequest' has different definitions in different modules; first difference is definition in module 'TikTokOpenSDK.TikTokOpenSDKShare' found property

@Sivakumar415 Hey, can you remove asterisks everywhere and try again?
@Lg0gs I tried, but it's not working.
Any updates on this?
@Lg0gs does it work on your side?
@Lg0gs I am hitting a similar error when trying to archive on a different line:
'TikTokOpenSDKShareRequest' has different definitions in different modules; first difference is definition in module 'TikTokOpenSDK.TikTokOpenSDKShare' found property name 'extraShareOptions'
Our build fails on CD tools because they don't have xCode 13.3 support yet. However, we managed to make it work locally with a patch (version 1.0.1)
diff --git a/node_modules/react-native-tiktok/ios/Podfile b/node_modules/react-native-tiktok/ios/Podfile
index e0be15c..050d9a4 100644
--- a/node_modules/react-native-tiktok/ios/Podfile
+++ b/node_modules/react-native-tiktok/ios/Podfile
@@ -4,7 +4,7 @@
target 'Tiktok' do
# Comment the next line if you don't want to use dynamic frameworks
use_frameworks!
- pod 'TikTokOpenSDK', '~> 5.0.0'
+ pod 'TikTokOpenSDK', '5.0.0'
# Pods for Tiktok
diff --git a/node_modules/react-native-tiktok/react-native-tiktok.podspec b/node_modules/react-native-tiktok/react-native-tiktok.podspec
index 95c0dbe..d050793 100644
--- a/node_modules/react-native-tiktok/react-native-tiktok.podspec
+++ b/node_modules/react-native-tiktok/react-native-tiktok.podspec
@@ -10,11 +10,11 @@ Pod::Spec.new do |s|
s.license = package["license"]
s.authors = package["author"]
- s.platforms = { :ios => "10.0" }
+ s.platforms = { :ios => "14.0" }
s.source = { :git => "https://github.com/Lg0gs/react-native-tiktok.git", :tag => "#{s.version}" }
s.source_files = "ios/**/*.{h,m,mm,swift}"
s.dependency "React-Core"
- s.dependency "TikTokOpenSDK", "~> 5.0.0"
+ s.dependency "TikTokOpenSDK", "5.0.0"
end
We switched to fixed 5.0.0 TikTokOpenSDK and modified s.platforms from 10.0 to 14.0
Hope this helps someone.
Sorry guys sometimes I don't have much free time to take a look at the issues. @vforvasile Thanks for the information, did you try it on Android?
I did the patch, but still facing the same issue
same issue , is there any workaround solution ?
@baraa95 @reehamRaed Did you try this workaround?
@Lg0gs yes I did , but nothing happened
I removed the share method (because i'm only using the login module) and modified the auth method in Tiktok.m and works for me
@hbittar Does it work with this method?
I removed the share method (because i'm only using the login module) and modified the auth method in Tiktok.m and works for me
can you explain the solution please ?
finally found the workaround after changing to 5.0.0
https://github.com/Lg0gs/react-native-tiktok/issues/7#issuecomment-1128529980
cd node_modules/react-native-tiktok/ios pod install
it's remove 5.0.14 and install 5.0.0
after go regular /ios/ folder and make pod install
again..
that resolve the issue after 1.5 days dance with a tambourine
@githubbla Still facing that problem
does anyone have a better fix for this?
Still, it does have the same error.
Setting TikTokOpenSDK to 5.0.0 and using version 1.0.1
suggested here didn't work for me. Does anyone was able to use this package?
@githubbla Unfortunately didn't work this workaround
Any updates? i have the same issue on build for iOS
Friends, I managed to solve the build problem by deleting the ios/Pods
, ios/Podfile
and ios/Podfile.lock
and running pod install --repo-update
again.
as there is no need for these files as they are already listed as dependency in react-native-tiktok.podspec
.
But when using the auth
function nothing happens, and after a while I get an alert that the webview is finished.
In some version did this lib work correctly?
The issue is the same as here detailed discussion.