appsflyer-react-native-plugin: Build problem with v6 sdk beta
Report
Plugin Version
react native appsflyer - sdk-v6-beta react native - 0.61.5
On what Platform are you having the issue?
iOS
What did you do?
Building xcode project after installing new pods.
What did you expect to happen?
Build to succeed.
What happened instead?
Got 2 errors about missing functions.
RNAppsFlyer.m:90:28: No visible @interface for 'AppsFlyerLib' declares the selector 'logLocationEvent:latitude:'
RNAppsFlyer.m:399:28: No visible @interface for 'AppsFlyerLib' declares the selector 'setDeviceLoggingDisabled:'
Please provide any other relevant information.
Seems like react-native-appsflyer.podspec
has a dependency for Beta-AppsFlyerFramework
that might be out of sync.
require 'json'
pkg = JSON.parse(File.read("package.json"))
Pod::Spec.new do |s|
s.name = pkg["name"]
s.version = pkg["version"]
s.summary = pkg["description"]
s.requires_arc = true
s.license = pkg["license"]
s.homepage = pkg["homepage"]
s.author = pkg["author"]
s.source = { :git => pkg["repository"]["url"] }
s.source_files = 'ios/**/*.{h,m}'
s.platform = :ios, "8.0"
s.static_framework = true
s.dependency 'Beta-AppsFlyerFramework', '~> 6.0.1'
s.dependency 'React'
end
About this issue
- Original URL
- State: closed
- Created 4 years ago
- Reactions: 6
- Comments: 17 (7 by maintainers)
Hi @af-vs,
I just tried it and the app builds without any issues.
Hello again, I deleted the derived data and -ObjC flag is present. No success. Also, deleted node_modules and did clean npm install & pod install after that.
This happens both on Xcode Version 11.5 (11E608c) & Version 12.0 beta 6 (12A8189n)
Also, when I click on Jump to Definition on line 399 setDeviceLoggingDisabled, I got only a question mark ?, not going anywhere (check the screenshots):
works for me too, thanks!
Hi @af-margot, 10x for the quick response.
So, pod install was done after updating the plugin. To be sure, I just deleted the Pod directory and Podfile.lock and did it again. Also, I did clean the project in XCode but the errors are still present.
In AppsFlyerLib.h I can see logLocationEvent but setDeviceLoggingDisabled is not present.