Skip to content

Support building the iOS armv7 with bitcode #37952

@dnfield

Description

@dnfield

This currently doesn't work - when the linking step comes up it errors:

...
  [3564/3575] SOLINK libFlutter.dylib libFlutter.dylib.TOC
  FAILED: libFlutter.dylib libFlutter.dylib.TOC 
  if [ ! -e ./libFlutter.dylib -o ! -e ./libFlutter.dylib.TOC ] || otool -l ./libFlutter.dylib | grep -q LC_REEXPORT_DYLIB ; then clang++ -shared -isysroot /b/s/w/ir/cache/osx_sdk/XCode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS12.2.sdk -miphoneos-version-min=8.0    -Wl,-object_path_lto,./lto_libFlutter.o -fembed-bitcode -arch armv7 -fno-aligned-allocation -stdlib=libc++ -Wl,-dead_strip -o ./libFlutter.dylib -Wl,-filelist,./libFlutter.dylib.rsp  -framework CoreMedia -framework CoreVideo -framework UIKit -framework OpenGLES -framework AudioToolbox -framework QuartzCore -framework Foundation -ldl -framework CoreFoundation -framework CoreGraphics -framework CoreText -framework ImageIO -framework MobileCoreServices -framework Security -lpthread && { otool -l ./libFlutter.dylib | grep LC_ID_DYLIB -A 5; nm -gP ./libFlutter.dylib | cut -f1-2 -d' ' | grep -v U$$; true; } > ./libFlutter.dylib.TOC; else clang++ -shared -isysroot /b/s/w/ir/cache/osx_sdk/XCode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS12.2.sdk -miphoneos-version-min=8.0    -Wl,-object_path_lto,./lto_libFlutter.o -fembed-bitcode -arch armv7 -fno-aligned-allocation -stdlib=libc++ -Wl,-dead_strip -o ./libFlutter.dylib -Wl,-filelist,./libFlutter.dylib.rsp  -framework CoreMedia -framework CoreVideo -framework UIKit -framework OpenGLES -framework AudioToolbox -framework QuartzCore -framework Foundation -ldl -framework CoreFoundation -framework CoreGraphics -framework CoreText -framework ImageIO -framework MobileCoreServices -framework Security -lpthread && { otool -l ./libFlutter.dylib | grep LC_ID_DYLIB -A 5; nm -gP ./libFlutter.dylib | cut -f1-2 -d' ' | grep -v U$$; true; } > ./libFlutter.dylib.tmp && if ! cmp -s ./libFlutter.dylib.tmp ./libFlutter.dylib.TOC; then mv ./libFlutter.dylib.tmp ./libFlutter.dylib.TOC ; fi; fi
  ld: section __bundle (address=0x014B8000, size=1016532099) would make the output executable exceed available address range for architecture armv7
  clang: error: linker command failed with exit code 1 (use -v to see invocation)
  ninja: build stopped: subcommand failed.

Metadata

Metadata

Assignees

Labels

engineflutter/engine related. See also e: labels.platform-iosiOS applications specifically

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions