juicycleff / flutter-unity-view-widget

Embeddable unity game engine view for Flutter. Advance demo here https://github.com/juicycleff/flutter-unity-arkit-demo
BSD 3-Clause "New" or "Revised" License
2.09k stars 505 forks source link

FUW not well-integrated with FirebaseAnalytics on iOS #889

Closed cmj0121 closed 8 months ago

cmj0121 commented 8 months ago

Describe the bug I try to integrate the FirebaseAnalytics with FUW but it has a problem when building the UnityFramework with following error message


ld: warning: directory not found for option '-F/Users/cmj/Library/Developer/Xcode/DerivedData/Runner-axwkfpqujhueongqokkumujmrnsc/Build/Products/Debug-iphoneos/XCFrameworkIntermediates/FirebaseAnalytics/AdIdSupport'
ld: warning: directory not found for option '-F/Users/cmj/Library/Developer/Xcode/DerivedData/Runner-axwkfpqujhueongqokkumujmrnsc/Build/Products/Debug-iphoneos/XCFrameworkIntermediates/GoogleAppMeasurement/AdIdSupport'
ld: warning: directory not found for option '-F/Users/cmj/Library/Developer/Xcode/DerivedData/Runner-axwkfpqujhueongqokkumujmrnsc/Build/Products/Debug-iphoneos/XCFrameworkIntermediates/GoogleAppMeasurement/WithoutAdIdSupport'
ld: framework not found FirebaseAnalytics
clang: error: linker command failed with exit code 1 (use -v to see invocation)

To Reproduce Steps to reproduce the behavior:

  1. Create a dummy Unity project
  2. add FUW in Assets and follow with the FUW README.md
  3. add FirebaseAnalytics in Assets
  4. copy GoogleService-Info.plist into Assets/ folder
  5. run Export IOS (Release) on Unity
  6. open Xcode via open ios/Runner.xcworkspace and build iOS APP

In step 6 the Xcode cannot build the UnityFramework and got the error message I mentioned before

Expected behavior It should build the dummy iOS

Screenshots

Unity (please complete the following information):

cmj0121 commented 8 months ago

Thanks to my team members and find the solution

Close the ticket ~