Skip to content
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

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

Open
XVZHIQUAN opened this issue Dec 12, 2023 · 3 comments

Comments

@XVZHIQUAN
Copy link

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
Copy link
Collaborator

Which version of libpag?

@MayHeads
Copy link

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

@XVZHIQUAN
Copy link
Author

Which version of libpag?

the latest version 1.0.4

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants