Skip to content
This repository has been archived by the owner on Jan 24, 2023. It is now read-only.

IOS mobile phone construction failed #60

Open
misskter opened this issue Jan 25, 2021 · 0 comments
Open

IOS mobile phone construction failed #60

misskter opened this issue Jan 25, 2021 · 0 comments

Comments

@misskter
Copy link

I use this plug-in to run in the IOS simulator, but when I use my iPhone to build it, it prompts me that the build failed. The error log is

/Users/mac126/Library/Developer/Xcode/DerivedData/Runner-fvtkejexkaamcydpxwsmfbiqxvdb/Build/Products/Debug-iphoneos/flutter_zoom_plugin/flutter_zoom_plugin.framework/flutter_zoom_plugin normal (in target 'flutter_zoom_plugin' from project 'Pods')
    cd /Users/mac126/work/workspace/eclass/ios/Pods
    /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -target arm64-apple-ios10.0 -dynamiclib -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS14.2.sdk -L/Users/mac126/Library/Developer/Xcode/DerivedData/Runner-fvtkejexkaamcydpxwsmfbiqxvdb/Build/Products/Debug-iphoneos/flutter_zoom_plugin -F/Users/mac126/Library/Developer/Xcode/DerivedData/Runner-fvtkejexkaamcydpxwsmfbiqxvdb/Build/Products/Debug-iphoneos/flutter_zoom_plugin -F/Users/mac126/work/workspace/eclass/ios/Pods/../.symlinks/plugins/flutter_zoom_plugin/ios -F/Users/mac126/work/workspace/eclass/ios/Pods/../Flutter -filelist /Users/mac126/Library/Developer/Xcode/DerivedData/Runner-fvtkejexkaamcydpxwsmfbiqxvdb/Build/Intermediates.noindex/Pods.build/Debug-iphoneos/flutter_zoom_plugin.build/Objects-normal/arm64/flutter_zoom_plugin.LinkFileList -install_name @rpath/flutter_zoom_plugin.framework/flutter_zoom_plugin -Xlinker -rpath -Xlinker /usr/lib/swift -Xlinker -rpath -Xlinker @executable_path/Frameworks -Xlinker -rpath -Xlinker @loader_path/Frameworks -dead_strip -Xlinker -object_path_lto -Xlinker /Users/mac126/Library/Developer/Xcode/DerivedData/Runner-fvtkejexkaamcydpxwsmfbiqxvdb/Build/Intermediates.noindex/Pods.build/Debug-iphoneos/flutter_zoom_plugin.build/Objects-normal/arm64/flutter_zoom_plugin_lto.o -Xlinker -export_dynamic -Xlinker -no_deduplicate -fembed-bitcode-marker -fobjc-arc -fobjc-link-runtime -L/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos -L/usr/lib/swift -Xlinker -add_ast_path -Xlinker /Users/mac126/Library/Developer/Xcode/DerivedData/Runner-fvtkejexkaamcydpxwsmfbiqxvdb/Build/Intermediates.noindex/Pods.build/Debug-iphoneos/flutter_zoom_plugin.build/Objects-normal/arm64/flutter_zoom_plugin.swiftmodule -framework Flutter -framework MobileRTC -framework Foundation -compatibility_version 1 -current_version 1 -Xlinker -dependency_info -Xlinker /Users/mac126/Library/Developer/Xcode/DerivedData/Runner-fvtkejexkaamcydpxwsmfbiqxvdb/Build/Intermediates.noindex/Pods.build/Debug-iphoneos/flutter_zoom_plugin.build/Objects-normal/arm64/flutter_zoom_plugin_dependency_info.dat -o /Users/mac126/Library/Developer/Xcode/DerivedData/Runner-fvtkejexkaamcydpxwsmfbiqxvdb/Build/Products/Debug-iphoneos/flutter_zoom_plugin/flutter_zoom_plugin.framework/flutter_zoom_plugin

ld: '/Users/mac126/work/soft/flutter/.pub-cache/git/flutter_zoom_plugin-88d1fa2685f28d67410d46e094461a0a030d3192/ios/MobileRTC.framework/MobileRTC' does not contain bitcode. You must rebuild it with bitcode enabled (Xcode setting ENABLE_BITCODE), obtain an updated library from the vendor, or disable bitcode for this target. file '/Users/mac126/work/soft/flutter/.pub-cache/git/flutter_zoom_plugin-88d1fa2685f28d67410d46e094461a0a030d3192/ios/MobileRTC.framework/MobileRTC' for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)

This is my development environment

mac126deair:ios mac126$ flutter doctor
Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel stable, 1.22.2, on macOS 11.1 20C69, locale zh-Hans-CN)
 
[✓] Android toolchain - develop for Android devices (Android SDK version 29.0.0)
[✓] Xcode - develop for iOS and macOS (Xcode 12.2)
[!] Android Studio (not installed)
[✓] IntelliJ IDEA Ultimate Edition (version 2019.1.3)
[✓] Connected device (2 available)
    ! Error: iPhone is busy: Copying cache files from device. Xcode will continue when iPhone is finished. (code -10)

! Doctor found issues in 1 category.
flutter_zoom_plugin:
    git:
      url: git://github.com/decodedhealth/flutter_zoom_plugin.git
      ref: 0.0.8

How can I solve this problem?

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

No branches or pull requests

1 participant