libpag / pag-flutter

The PAG SDK demo for the flutter platform.
Other
55 stars 23 forks source link

use this plugin to build iOS framework and put it in a new iOS project, it did not work #41

Open XVZHIQUAN opened 8 months ago

XVZHIQUAN commented 8 months ago

use the command line flutter build ios-framework --output=package to output the framework,use this plugin to build iOS framework and put it in a new iOS project, it did not work.

Flutter doctor
[✓] Flutter (Channel stable, 3.13.4, on macOS 14.1.1 23B81 darwin-arm64, locale zh-Hans-CN)
[✗] Android toolchain - develop for Android devices
    ✗ Unable to locate Android SDK.
      Install Android Studio from: https://developer.android.com/studio/index.html
      On first launch it will assist you in installing the Android SDK components.
      (or visit https://flutter.dev/docs/get-started/install/macos#android-setup for detailed instructions).
      If the Android SDK has been installed to a custom location, please use
      `flutter config --android-sdk` to update to that location.

[✓] Xcode - develop for iOS and macOS (Xcode 15.0.1)
[✓] Chrome - develop for the web
[!] Android Studio (not installed)
[✓] VS Code (version 1.84.2)
[✓] Connected device (3 available)
    ! Error: Browsing on the local area network for cciPhone. Ensure the device is unlocked and attached with a cable or
      associated with the same local area network as this Mac.
      The device must be opted into Developer Mode to connect wirelessly. (code -27)
    ! Error: Browsing on the local area network for iPhone. Ensure the device is unlocked and attached with a cable or
      associated with the same local area network as this Mac.
      The device must be opted into Developer Mode to connect wirelessly. (code -27)

and then put it to new iOS project. the error shows like below

ld: warning: Could not find or use auto-linked framework 'CoreAudioTypes': framework 'CoreAudioTypes' not found
ld: Undefined symbols:
  _OBJC_CLASS_$_PAGFile, referenced from:
       in pag[6](TGFlutterPagRender.o)
  _OBJC_CLASS_$_PAGPlayer, referenced from:
       in pag[6](TGFlutterPagRender.o)
  _OBJC_CLASS_$_PAGSurface, referenced from:
       in pag[6](TGFlutterPagRender.o)
clang: error: linker command failed with exit code 1 (use -v to see invocation)

Showing Recent Messages
Undefined symbols:
Linker command failed with exit code 1 (use -v to see invocation)
gdoujk1123ljm commented 7 months ago

Which version of libpag?

MayHeads commented 7 months ago

I meet same error with the version of the pag: ^1.0.4

XVZHIQUAN commented 7 months ago

Which version of libpag?

the latest version 1.0.4