Use xcframeworks in prebuilt add-to-app sample (#582)

pull/587/head
Jenn Magder 4 years ago committed by GitHub
parent 0c011574d0
commit 1ed40c656d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -36,7 +36,7 @@ you're building for both iOS and Android, with both toolchains installed):
flutter build aar flutter build aar
# For iOS builds: # For iOS builds:
flutter build ios-framework --output=../ios_using_prebuilt_module/Flutter flutter build ios-framework --xcframework --output=../ios_using_prebuilt_module/Flutter
cd ../ios_fullscreen cd ../ios_fullscreen
pod install pod install
cd ../ios_using_plugin cd ../ios_using_plugin
@ -167,7 +167,7 @@ To build `flutter_module` as a set of frameworks, run this command from the
`flutter_module` directory: `flutter_module` directory:
```bash ```bash
flutter build ios-framework --output=../ios_using_prebuilt_module/Flutter flutter build ios-framework --xcframework --output=../ios_using_prebuilt_module/Flutter
``` ```
This will output frameworks for debug, profile, and release modes into This will output frameworks for debug, profile, and release modes into

@ -236,7 +236,7 @@
attributes = { attributes = {
LastSwiftUpdateCheck = 1030; LastSwiftUpdateCheck = 1030;
LastUpgradeCheck = 1030; LastUpgradeCheck = 1030;
ORGANIZATIONNAME = "Andrew Brogdon"; ORGANIZATIONNAME = "";
TargetAttributes = { TargetAttributes = {
26DF66D3233136460076ACA6 = { 26DF66D3233136460076ACA6 = {
CreatedOnToolsVersion = 10.3; CreatedOnToolsVersion = 10.3;

@ -236,7 +236,7 @@
attributes = { attributes = {
LastSwiftUpdateCheck = 1030; LastSwiftUpdateCheck = 1030;
LastUpgradeCheck = 1030; LastUpgradeCheck = 1030;
ORGANIZATIONNAME = "Andrew Brogdon"; ORGANIZATIONNAME = "";
TargetAttributes = { TargetAttributes = {
261836572353DC9600E2709C = { 261836572353DC9600E2709C = {
CreatedOnToolsVersion = 10.3; CreatedOnToolsVersion = 10.3;

@ -3,19 +3,19 @@
archiveVersion = 1; archiveVersion = 1;
classes = { classes = {
}; };
objectVersion = 50; objectVersion = 52;
objects = { objects = {
/* Begin PBXBuildFile section */ /* Begin PBXBuildFile section */
269CD2AF239B23BA0091DFB6 /* App.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 269CD2AD239B23BA0091DFB6 /* App.framework */; };
269CD2B0239B23BA0091DFB6 /* App.framework in Embed Frameworks */ = {isa = PBXBuildFile; fileRef = 269CD2AD239B23BA0091DFB6 /* App.framework */; settings = {ATTRIBUTES = (CodeSignOnCopy, RemoveHeadersOnCopy, ); }; };
269CD2B1239B23BA0091DFB6 /* Flutter.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 269CD2AE239B23BA0091DFB6 /* Flutter.framework */; };
269CD2B2239B23BA0091DFB6 /* Flutter.framework in Embed Frameworks */ = {isa = PBXBuildFile; fileRef = 269CD2AE239B23BA0091DFB6 /* Flutter.framework */; settings = {ATTRIBUTES = (CodeSignOnCopy, RemoveHeadersOnCopy, ); }; };
26DC0F6C2398363A00D41B08 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 26DC0F6B2398363A00D41B08 /* AppDelegate.swift */; }; 26DC0F6C2398363A00D41B08 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 26DC0F6B2398363A00D41B08 /* AppDelegate.swift */; };
26DC0F6E2398363A00D41B08 /* ViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 26DC0F6D2398363A00D41B08 /* ViewController.swift */; }; 26DC0F6E2398363A00D41B08 /* ViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 26DC0F6D2398363A00D41B08 /* ViewController.swift */; };
26DC0F712398363A00D41B08 /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 26DC0F6F2398363A00D41B08 /* Main.storyboard */; }; 26DC0F712398363A00D41B08 /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 26DC0F6F2398363A00D41B08 /* Main.storyboard */; };
26DC0F732398363B00D41B08 /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 26DC0F722398363B00D41B08 /* Assets.xcassets */; }; 26DC0F732398363B00D41B08 /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 26DC0F722398363B00D41B08 /* Assets.xcassets */; };
26DC0F762398363B00D41B08 /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 26DC0F742398363B00D41B08 /* LaunchScreen.storyboard */; }; 26DC0F762398363B00D41B08 /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 26DC0F742398363B00D41B08 /* LaunchScreen.storyboard */; };
F77F88F1255396AD00309E51 /* App.xcframework in Frameworks */ = {isa = PBXBuildFile; fileRef = F77F88EF255396AD00309E51 /* App.xcframework */; };
F77F88F2255396AD00309E51 /* Flutter.xcframework in Frameworks */ = {isa = PBXBuildFile; fileRef = F77F88F0255396AD00309E51 /* Flutter.xcframework */; };
F77F88F3255396B800309E51 /* App.xcframework in Embed Frameworks */ = {isa = PBXBuildFile; fileRef = F77F88EF255396AD00309E51 /* App.xcframework */; settings = {ATTRIBUTES = (CodeSignOnCopy, RemoveHeadersOnCopy, ); }; };
F77F88F4255396B800309E51 /* Flutter.xcframework in Embed Frameworks */ = {isa = PBXBuildFile; fileRef = F77F88F0255396AD00309E51 /* Flutter.xcframework */; settings = {ATTRIBUTES = (CodeSignOnCopy, RemoveHeadersOnCopy, ); }; };
/* End PBXBuildFile section */ /* End PBXBuildFile section */
/* Begin PBXCopyFilesBuildPhase section */ /* Begin PBXCopyFilesBuildPhase section */
@ -25,8 +25,8 @@
dstPath = ""; dstPath = "";
dstSubfolderSpec = 10; dstSubfolderSpec = 10;
files = ( files = (
269CD2B0239B23BA0091DFB6 /* App.framework in Embed Frameworks */, F77F88F3255396B800309E51 /* App.xcframework in Embed Frameworks */,
269CD2B2239B23BA0091DFB6 /* Flutter.framework in Embed Frameworks */, F77F88F4255396B800309E51 /* Flutter.xcframework in Embed Frameworks */,
); );
name = "Embed Frameworks"; name = "Embed Frameworks";
runOnlyForDeploymentPostprocessing = 0; runOnlyForDeploymentPostprocessing = 0;
@ -34,8 +34,6 @@
/* End PBXCopyFilesBuildPhase section */ /* End PBXCopyFilesBuildPhase section */
/* Begin PBXFileReference section */ /* Begin PBXFileReference section */
269CD2AD239B23BA0091DFB6 /* App.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = App.framework; path = "Flutter/$(CONFIGURATION)/App.framework"; sourceTree = "<group>"; };
269CD2AE239B23BA0091DFB6 /* Flutter.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Flutter.framework; path = "Flutter/$(CONFIGURATION)/Flutter.framework"; sourceTree = "<group>"; };
26DC0F682398363A00D41B08 /* IOSUsingPrebuiltModule.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = IOSUsingPrebuiltModule.app; sourceTree = BUILT_PRODUCTS_DIR; }; 26DC0F682398363A00D41B08 /* IOSUsingPrebuiltModule.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = IOSUsingPrebuiltModule.app; sourceTree = BUILT_PRODUCTS_DIR; };
26DC0F6B2398363A00D41B08 /* AppDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = "<group>"; }; 26DC0F6B2398363A00D41B08 /* AppDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = "<group>"; };
26DC0F6D2398363A00D41B08 /* ViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ViewController.swift; sourceTree = "<group>"; }; 26DC0F6D2398363A00D41B08 /* ViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ViewController.swift; sourceTree = "<group>"; };
@ -43,6 +41,8 @@
26DC0F722398363B00D41B08 /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = "<group>"; }; 26DC0F722398363B00D41B08 /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = "<group>"; };
26DC0F752398363B00D41B08 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = "<group>"; }; 26DC0F752398363B00D41B08 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = "<group>"; };
26DC0F772398363B00D41B08 /* Info-Debug.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = "Info-Debug.plist"; sourceTree = "<group>"; }; 26DC0F772398363B00D41B08 /* Info-Debug.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = "Info-Debug.plist"; sourceTree = "<group>"; };
F77F88EF255396AD00309E51 /* App.xcframework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.xcframework; name = App.xcframework; path = "Flutter/$(CONFIGURATION)/App.xcframework"; sourceTree = "<group>"; };
F77F88F0255396AD00309E51 /* Flutter.xcframework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.xcframework; name = Flutter.xcframework; path = "Flutter/$(CONFIGURATION)/Flutter.xcframework"; sourceTree = "<group>"; };
F7C7993B251EF8C000650C20 /* Info-Release.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; path = "Info-Release.plist"; sourceTree = "<group>"; }; F7C7993B251EF8C000650C20 /* Info-Release.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; path = "Info-Release.plist"; sourceTree = "<group>"; };
/* End PBXFileReference section */ /* End PBXFileReference section */
@ -51,8 +51,8 @@
isa = PBXFrameworksBuildPhase; isa = PBXFrameworksBuildPhase;
buildActionMask = 2147483647; buildActionMask = 2147483647;
files = ( files = (
269CD2AF239B23BA0091DFB6 /* App.framework in Frameworks */, F77F88F1255396AD00309E51 /* App.xcframework in Frameworks */,
269CD2B1239B23BA0091DFB6 /* Flutter.framework in Frameworks */, F77F88F2255396AD00309E51 /* Flutter.xcframework in Frameworks */,
); );
runOnlyForDeploymentPostprocessing = 0; runOnlyForDeploymentPostprocessing = 0;
}; };
@ -62,8 +62,8 @@
269CD2AC239B23BA0091DFB6 /* Frameworks */ = { 269CD2AC239B23BA0091DFB6 /* Frameworks */ = {
isa = PBXGroup; isa = PBXGroup;
children = ( children = (
269CD2AD239B23BA0091DFB6 /* App.framework */, F77F88EF255396AD00309E51 /* App.xcframework */,
269CD2AE239B23BA0091DFB6 /* Flutter.framework */, F77F88F0255396AD00309E51 /* Flutter.xcframework */,
); );
name = Frameworks; name = Frameworks;
sourceTree = "<group>"; sourceTree = "<group>";
@ -128,7 +128,7 @@
attributes = { attributes = {
LastSwiftUpdateCheck = 1030; LastSwiftUpdateCheck = 1030;
LastUpgradeCheck = 1030; LastUpgradeCheck = 1030;
ORGANIZATIONNAME = "Andrew Brogdon"; ORGANIZATIONNAME = "";
TargetAttributes = { TargetAttributes = {
26DC0F672398363A00D41B08 = { 26DC0F672398363A00D41B08 = {
CreatedOnToolsVersion = 10.3; CreatedOnToolsVersion = 10.3;

@ -31,7 +31,7 @@ echo "Pre-caching ios artifacts, such as the Flutter.framework"
echo "Fetching dependencies and building 'flutter_module'." echo "Fetching dependencies and building 'flutter_module'."
pushd add_to_app/flutter_module pushd add_to_app/flutter_module
"${LOCAL_SDK_PATH}/bin/flutter" packages get "${LOCAL_SDK_PATH}/bin/flutter" packages get
"${LOCAL_SDK_PATH}/bin/flutter" build ios-framework --output="$(pwd)/../ios_using_prebuilt_module/Flutter" "${LOCAL_SDK_PATH}/bin/flutter" build ios-framework --xcframework --output="$(pwd)/../ios_using_prebuilt_module/Flutter"
popd popd
echo "Fetching dependencies for 'flutter_module_using_plugin'." echo "Fetching dependencies for 'flutter_module_using_plugin'."

Loading…
Cancel
Save