New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
v1.9.2 Not Working Anymore within a CocoaPod #58
Comments
Hi @mharlowfod, |
I am on v1.9.1 cocoapods right now. Are you able to do a quick sanity check that Bugfender SDK 1.9.2 is working fine when used within a cocopod? |
Sure thing! I'm opening a ticket in our internal system and will come back to you after we can check it. |
Hi @mharlowfod we've been able to reproduce this issue. |
I wanted to report that I have the same issue when building with cocoapods 1.9.3 and using Bugfender v1.9.2. I'm using this in Flutter application (with modified plugin) but I guess the reason for that is the same.
|
Hi @orestesgaolin |
Yes, also works on simulator after upgrade of cocoapods to |
I had the issue for a dependency upgrade in a legacy application, while the compilation was working in a new test project. It worked after running |
Seems, to have worked for me too; thanks for the update command @CarlSarkisS ! |
Background: I was excited to see that pod update worked properly for v1.8.0+ after I updated to Mac OS Catalina and Xcode 11.6 (with a Swift Version high enough to match 5.1+ that Bugfender started to use). I was immediately disappointed to see that usage of Bugfender within my personal CocoaPod classes had stopped working.
I have narrowed the issue to the fact that if I include a single usage of the SDK in CocoaPod classes (ex. BFLog("Hello World")), I get the following build error (not that including BugfenderSDK as a dependency and also doing import BugfenderSDK in the file do not result in failed build):
ld: warning: ignoring file /Users/administrator/Documents/Sources-CC/b2c-ios/Pods/BugfenderSDK/BugfenderSDK.xcframework/ios-armv7_arm64/BugfenderSDK.framework/BugfenderSDK, missing required architecture x86_64 in file /Users/administrator/Documents/Sources-CC/b2c-ios/Pods/BugfenderSDK/BugfenderSDK.xcframework/ios-armv7_arm64/BugfenderSDK.framework/BugfenderSDK (2 slices)
Undefined symbols for architecture x86_64:
"BugfenderSDK.BFLog(_: Swift.String, _: Swift.CVarArg..., tag: Swift.String?, level: __C.BFLogLevel, filename: Swift.String, line: Swift.Int, funcname: Swift.String) -> ()", referenced from:
closure #1 (Alamofire.DataResponse<FitnessOnDemandClients.APIResponseWithPagination<[FitnessOnDemandClients.ClassDetail]>>) -> () in FitnessOnDemandClients.FilteredVideosViewModel.(updateFromRemote in 0044532F4F68C0DD5C3064F7820FE865)(query: Swift.String?, filterTypes: [FitnessOnDemandClients.FilterType]?, offset: Swift.Int, context: FitnessOnDemandClients.APIRequestContext) -> () in FilteredVideosViewModel.o
(maybe you meant: default argument 2 of BugfenderSDK.BFLog(: Swift.String, : Swift.CVarArg..., tag: Swift.String?, level: __C.BFLogLevel, filename: Swift.String, line: Swift.Int, funcname: Swift.String) -> (), default argument 3 of BugfenderSDK.BFLog(: Swift.String, _: Swift.CVarArg..., tag: Swift.String?, level: __C.BFLogLevel, filename: Swift.String, line: Swift.Int, funcname: Swift.String) -> () )
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Here is my podspec for reference (redacted naming):
Pod::Spec.new do |s|
s.name = 'MyPod'
s.summary = 'Common library for iOS applications'
s.version = '2.3.0'
s.homepage = 'repo.com'
s.license = { :type => 'MIT', :file => 'LICENSE' }
s.author = { Me' => 'me@me.com' }
s.source = { :git => 'git.com', :tag => s.version.to_s }
s.ios.deployment_target = '10.0'
s.source_files = 'MyPod/Classes//*.swift'
s.resource_bundles = {
'MyPod' => ['MyPod/Classes//*.{storyboard,xib,xcassets,json,imageset,png,strings}']
}
s.dependency 'BugfenderSDK', '1.9.2'
end
This issue did not present itself in SDK versions 1.7.0 and below.
The text was updated successfully, but these errors were encountered: