Closed edem closed 3 years ago
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. You may also mark this issue as a "discussion" and I will leave this open.
Closing this issue after a prolonged period of inactivity. Fell free to reopen this issue, if this still affecting you.
Moving #import "RNLine-Swift.h" to top in AppDelegate.m solved the issue for me.
same issue
Your environment
Description
Use of undeclared identifier 'LineLogin'
I have read some links as below and tried to fix it. But all of them do not work. https://github.com/xmartlabs/react-native-line/issues/58 https://github.com/xmartlabs/react-native-line#using-objective-c
Screenshots
Steps To Reproduce
install
yarn add @xmartlabs/react-native-line cd ios
edit Podfile as below : ( I mask 'use_frameworks!'. It cause many compatible error. I tried 'use_frameworks! :linkage => :static'. It cause error too. )
require_relative '../node_modules/react-native/scripts/react_native_pods' require_relative '../node_modules/@react-native-community/cli-platform-ios/native_modules'
platform :ios, '10.0'
use_frameworks! :linkage => :static
use_frameworks!
target 'CSApp3' do config = use_native_modules!
use_react_native!(:path => config["reactNativePath"])
Line Login --> I have tried both ways.
pod 'LineSDKSwift', '~> 5.0'
pod 'LineSDK', '~> 5.0'
end
pod install :
pod install cd ..
edit AppDelegate.m to import header file : ( I have tried two ways )
import "RNLine-Swift.h"
or @import RNLine;
add this line before return :
[LineLogin setupWithChannelID:@"1111111111" universalLinkURL:nil];
Use of undeclared identifier 'LineLogin'
Expected behavior
I am looking forward to building success.
Actual behavior
Use of undeclared identifier 'LineLogin'
Snack or minimal code example