Comments (15)
@dorkyboi sorry for the trouble you are experiencing. I am looking into this issue and will get back to you.
Any update on this ?
from tiktok-opensdk-ios.
from tiktok-opensdk-ios.
#2 (comment) (don't use cocoapods)
from tiktok-opensdk-ios.
Correct me if I'm wrong, but isn't @import
unavailable when the project has .mm
files (aka Objective-C++ Source)?
from tiktok-opensdk-ios.
No idea. I just know that in a regular Objective-C project, the above syntax works fine if the package was added with SPM.
from tiktok-opensdk-ios.
Well, yeah – after extensive research, it would seem that Swift can only be used in Objective-C++ files when importing with -Swift
postfix. Refactoring AppDelegate.mm
to Swift seems to be the only option left on the table, but I don't have nearly enough skills to effectively move all changes made to it by other libraries while making sure nothing breaks.
Guess we will have to use the old SDK, at least for iOS.
Any idea why importing doesn't work? Can it/will it be fixed in the future? Excluding the whole React Native community seems like a big deal.
from tiktok-opensdk-ios.
I don't use React Native, but it seems this a known problem with RN and something they're debating how to fix: react-native-community/discussions-and-proposals#587
I don't work for TikTok, but I wouldn't expect this library to move away from SPM/Swift. I don't know if this particular problem is a limitation with RN or your ability to convert your AppDelegate to Swift. If it's the latter, I suggest you just get it done and move on.
from tiktok-opensdk-ios.
Still, I find it quite weird that other imports (for example #import <FBSDKCoreKit/FBSDKCoreKit-Swift.h>
) do work but TikTok's SDK won't. Even though TikTok's documentation and this repo's readme both state that CocoaPods can be used as an alternative to SPM.
from tiktok-opensdk-ios.
@dorkyboi sorry for the trouble you are experiencing. I am looking into this issue and will get back to you.
from tiktok-opensdk-ios.
@dorkyboi sorry for the trouble you are experiencing. I am looking into this issue and will get back to you.
Any update on this ?
Same, I would love to use this within a React Native iOS app! @stephen-boyle
from tiktok-opensdk-ios.
Related Issues (20)
- When jump to tiktok app for authorized login, it will show the error: "In order to protect our community, we restrict certain content on our platform." HOT 7
- error_code=-4 HOT 2
- Sorry! We plan on updating the bundle ID so that it is `com.tiktok.open.sharekitdemo` instead of `com.tiktok.open.shraekitdemo.inhouse`. If the bundle ID is causing an issue, you can update it to resolve it.
- https://github.com/tiktok/tiktok-opensdk-ios
- Shared images through TikTokShareRequest are in a wrong order HOT 1
- Unable to launch tiktok app when authorized to login in HOT 3
- When authorized to log in, opening my app using universal link failed, causing the app login to fail.
- cisserashid HOT 1
- Gift hup HOT 1
- Docs is not supporting react native ios objective-c HOT 2
- ShareKit - TikTok opens and closes immediately without sharing media HOT 17
- TikTok
- [Feature]: Support App Privacy Manifest HOT 1
- Login Kit TikTokAuthRequest.send completion not call HOT 1
- When some users are authorized to log in, they will jump to an external browser to open the tiktok web page, but "authRequest?.isWebAuth" is false.
- LoginKit isWebAuth = false, but always trying web auth and fail. HOT 10
- Docs/ShareKit: Consecutive statements on a line must be separated by ';' HOT 1
- are receiving this email because you subscribed to the TikTok for Developers blog. You can manage your account notification preferences or unsubscribe at any time. Ready to upgrade to the latest SDK? Last year, we introduced the updated TikTok OpenSDK on GitHub that allows third-party platforms to build seamless sharing and authentication experiences within their app. Since then, a number of partners have used TikTok OpenSDK features to improve and enhance their apps, including Smule, Discord and Linktree. If you've been thinking about updating your app to TikTok OpenSDK, we've made the decision easy for you: check out our top 4 reasons why you should upgrade to the newest SDK. Read blog post HOT 1
- Dy h
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 tiktok-opensdk-ios.