flurry / flurry-ios-sdk

Flurry iOS SDK CocoaPods
Apache License 2.0
155 stars 65 forks source link

Building for iOS, but linking in object file built for Mac Catalyst #254

Open SmileCicy opened 1 year ago

SmileCicy commented 1 year ago

Can't run app in iPhone while using Xcode 14.3

In /Users/xxx/Library/Developer/Xcode/DerivedData/xxx-dnnhlltzmmizttafdfsfebinojqo/Build/Products/Debug-iphoneos/CrashReporter.framework/CrashReporter(CrashReporter-arm64-master.o), building for iOS, but linking in object file built for Mac Catalyst, file '/Users/xxx/Library/Developer/Xcode/DerivedData/xxx-dnnhlltzmmizttafdfsfebinojqo/Build/Products/Debug-iphoneos/CrashReporter.framework/CrashReporter'
Linker command failed with exit code 1 (use -v to see invocation)

This Bug is About Please choose the closest item by replacing [ ] with [x].

Platform Please choose the platform(s) that you are having the issue by replacing [ ] with [x].

Environment Please tell us the versions of Flurry SDK, XCode, and iOS you are using.

flurrydev commented 1 year ago

@SmileCicy I wasn't able to reproduce this issue on xcode 14.3 on either Intel or M1 Macs. I have posted a working sample project here: https://github.com/flurrydev/Flurry-iOS-core-analytics-sample-ObjC

Somethings I can suggest are to delete the derived data folder, or remove Flurry from your pod file update and then add Flurry back in.

Also if you can provide me a similar sample app that reproduces the error I will investigate further.