Closed cherpake closed 2 months ago
This is solved by manually adding -framework "CrashReporter" to Other linker flags for Countly target in Pods project
Seems like this hack is working:
post_install do |installer|
installer.pods_project.targets.each do |target|
target.build_configurations.each do |config|
if target.name == "Countly"
config.build_settings['OTHER_LDFLAGS'] ||= ['$(inherited)']
config.build_settings['OTHER_LDFLAGS'] << '-framework "CrashReporter"'
end
end
end
end
or not :( I'm not sure what's going on anymore...
OK, seems I need this too
post_install do |installer|
installer.pods_project.targets.each do |target|
target.build_configurations.each do |config|
if target.name == "Countly"
config.build_settings['OTHER_LDFLAGS'] ||= ['$(inherited)']
config.build_settings['OTHER_LDFLAGS'] << '-framework "CrashReporter"'
config.build_settings['LIBRARY_SEARCH_PATHS'] ||= ['$(inherited)']
config.build_settings['LIBRARY_SEARCH_PATHS'] << "${PODS_XCFRAMEWORKS_BUILD_DIR}/PLCrashReporter"
config.build_settings['FRAMEWORK_SEARCH_PATHS'] ||= ['$(inherited)']
config.build_settings['FRAMEWORK_SEARCH_PATHS'] << "${PODS_XCFRAMEWORKS_BUILD_DIR}/PLCrashReporter"
end
end
end
end
Hi @cherpake, Thank you for reporting the issue and providing the solution. We are able to reproduce the issue and with your solution it works fine. We've also updated the SDK documentation accordingly. Apologies for the delayed response.
I'm trying to switch to PLCrashReporter but I'm always getting "PLCrashReporter dependency can not be found in Project" exception.
My Podfile looks like this:
I'm sure I'm doing something wrong, but can't figure out what.