Closed matsumura-katsuhiro closed 4 months ago
I found easier way to solve this issue. line-sdk-unity 1.4.0 have a problem with LineSDKObjc.framework loaded twice.
When you check your Xcode project, You can found LineSDKObjC.framework in {Project}/Libraries/Plugins/iOS/LineSDK and {Project}/Frameworks/Plugins/iOS/LineSDK/vender
To solve this issue, Simply deselect the iOS import option and then apply the LineSDKObjc.framework within Unity's Assets/Plugins/iOS/LineSDK/vendor.
Should be fixed in 1.4.1.
Is it a security issue?
No
What did you do?
When building line-sdk-unity 1.4.0 with Unity 2021.3.37, a build error occurs. Unity 2021.3.37 includes xcframework support, which seems to be causing file duplication.
Here is a part of the error that occurs
This phenomenon also occurs in a project that only includes the LineSDK.
When setting the environment to iOS and performing an Archive on the Xcode project generated by executing "Build," an Unexpected duplicate tasks error occurs.
What did you expect?
I hope that the duplicate registration of xcframework will not occur and that the build will be successful.
This phenomenon may be due to an issue with Unity's handling of xcframework.
I was able to confirm that the build succeeds by adding the following code:
In FrameworkAdding.cs, I confirmed that removing the LineSDKObjC.xcframework, which Unity seems to be adding, with the following code allows it to work correctly:
I would like to confirm if this approach is correct.
What happened actually?
When building line-sdk-unity 1.4.0 with Unity 2021.3.37, the following build errors occur unexpected duplicate tasks duplicate output file
Your environment?
Apple MacBook Pro M1 2021 macOS 13.6.4 ventura line-sdk-unity 1.4.0 with Unity 2021.3.37
Sample project