line-sdk-ios-swift icon indicating copy to clipboard operation
line-sdk-ios-swift copied to clipboard

Undefined symbol: dispatch thunk of LineSDK.LineSDKAccessToken.value.getter : Swift.String

Open Kenward1336 opened this issue 8 months ago • 3 comments

Hello,

We are developing a Swift framework to be used in Unity.

While working on adding Line Login, we encountered an issue. We successfully added the dependency via CocoaPods, wrote the necessary code, and built the framework without any errors.

However, when adding the framework to the Unity iOS build project and attempting to build, we encountered issues where certain Swift functions could not be found, such as:

Undefined symbol: dispatch thunk of LineSDK.LineSDKAccessToken.value.getter : Swift.String
Undefined symbol: dispatch thunk of LineSDK.LineSDKLoginResult.accessToken.getter : LineSDK.LineSDKAccessToken
Undefined symbol: dispatch thunk of LineSDK.LineSDKLoginManager.application(_:__C.UIApplication, open: Foundation.URL, options: [__C.UIApplicationOpenURLOptionsKey : Any]) -> Swift.Bool

and along with some other errors of the same kind.

Image

Following the guide, we were able to integrate it successfully using Objective-C. But, our goal is to build the framework purely in Swift.

Would you be able to provide any insights or solutions for this issue?

Kenward1336 avatar Feb 27 '25 03:02 Kenward1336