profile
viewpoint
Bernard Gatt BernardGatt @bourbonltd @Casumo @146BC bernardgatt.com Founder @bourbonltd, Product Producer @Casumo

push eventbourbonltd/engine-documentation

Bernard Gatt

commit sha c3edf4ba55533ba0a91f426d2f1c9a2a08c9cd3a

Added documentation for imageWidget

view details

push time in 5 days

issue commentflutter/flutter

Adding to app without Cocoapods is causing signing problems on XCode 11.1

Great to hear! How are you combining it into one .framework? Technically the dependencies (flutter, app, plugins) are still dependencies within this framework but it makes it a lot easier for the end user to integrate my framework (which is just 1 pod)

When I do #36968 I will include a xcframework flag for the simulator/real device use-case. 🏅

BernardGatt

comment created time in 20 days

issue commentflutter/flutter

Adding to app without Cocoapods is causing signing problems on XCode 11.1

To avoid having to rebuild every time you test on device / simulator, I updated the script to start using the new xcframeworks feature in XCode 11.

Some of my experimentation with this a few months ago: https://github.com/jmagman/flutter/blob/assemble-framework/packages/flutter_tools/lib/src/commands/build_framework.dart#L173

I'll definitely check this out.

FYI i'm embedding everything (flutter, app, plugins) into one .framework file and distributing it via a pod. Apart from having to sign the internal frameworks in the app (which is understandable) everything works fine.

BernardGatt

comment created time in 20 days

issue commentflutter/flutter

Adding to app without Cocoapods is causing signing problems on XCode 11.1

Haven't tested with the original script but it should work now, that was the only issue I had after upgrading.

BernardGatt

comment created time in 20 days

issue commentflutter/flutter

Adding to app without Cocoapods is causing signing problems on XCode 11.1

Hm I'm not seeing that, there are Info.plists in the App.framework, Flutter.framework, and all the exported plugin pod frameworks:

I just re-ran the command and you're right. The Info.plist is included in the Release config as well. Not sure exactly why that issue happened in the first place (this was one of the first things I did since upgraded to Catalina ... could be related). But for some weird reason the Info.plist was not present in the Release config.

BernardGatt

comment created time in 20 days

issue commentflutter/flutter

Adding to app without Cocoapods is causing signing problems on XCode 11.1

To avoid having to rebuild every time you test on device / simulator, I updated the script to start using the new xcframeworks feature in XCode 11.

FrameworksDir=$PWD/Flutter

flutter clean

# Build for release
flutter build ios --release --no-simulator

# Copy release flutter frameworks in dependencies directory
cp -R .ios/Flutter/engine/Flutter.framework $FrameworksDir
cp -R .ios/Flutter/App.framework $FrameworksDir

# Build for debug
flutter build ios --debug --simulator --no-codesign

# Move release plugins into dependencies directory
mv build/ios/Release-iphoneos/**/*.framework $FrameworksDir

# Move debug plugins into dependencies directory
mkdir $FrameworksDir/debug
mv build/ios/Debug-iphonesimulator/**/*.framework $FrameworksDir/debug

# Copy debug flutter frameworks in dependencies directory
cp -R .ios/Flutter/engine/Flutter.framework $FrameworksDir/debug
cp -R .ios/Flutter/App.framework $FrameworksDir/debug

# Clean up
cd $FrameworksDir
rm -rf Pods.build/ Debug-iphoneos/ XCBuildData/ Pods_Runner.framework

# Removing extra architectures from flutter frameworks
lipo -remove x86_64 $FrameworksDir/Flutter.framework/Flutter -o $FrameworksDir/Flutter.framework/Flutter
lipo -remove armv7 $FrameworksDir/debug/Flutter.framework/Flutter -o $FrameworksDir/debug/Flutter.framework/Flutter
lipo -remove arm64 $FrameworksDir/debug/Flutter.framework/Flutter -o $FrameworksDir/debug/Flutter.framework/Flutter

# Create xcframeworks of all dependencies
xcodebuild -create-xcframework -framework $FrameworksDir/debug/Flutter.framework -framework $FrameworksDir/Flutter.framework -output $FrameworksDir/Flutter.xcframework
xcodebuild -create-xcframework -framework $FrameworksDir/debug/App.framework -framework $FrameworksDir/App.framework -output $FrameworksDir/App.xcframework
xcodebuild -create-xcframework -framework $FrameworksDir/debug/FlutterPluginRegistrant.framework -framework $FrameworksDir/FlutterPluginRegistrant.framework -output $FrameworksDir/FlutterPluginRegistrant.xcframework

# Add any flutter plugins below
xcodebuild -create-xcframework -framework $FrameworksDir/debug/shared_preferences.framework -framework $FrameworksDir/shared_preferences.framework -output $FrameworksDir/shared_preferences.xcframework
BernardGatt

comment created time in 20 days

issue commentflutter/flutter

Adding to app without Cocoapods is causing signing problems on XCode 11.1

Running the below script as a build step within your project should generate the proper frameworks but as I mentioned above, without embedding an Info.plist you'll get the Install claimed to have succeeded, but application could not be found on device. error.

Since we're extracting the frameworks from Cocoapods the only way I see around this is to generate an Info.plist together with the plugin frameworks.

FrameworkDir=$PROJECT_DIR/Frameworks

cd ../your-flutter-project
flutter clean

flutter build ios --debug --no-simulator

cp -R .ios/Flutter/engine/Flutter.framework $FrameworkDir
cp -R .ios/Flutter/App.framework $FrameworkDir

mv build/ios/Debug-iphoneos/**/*.framework $FrameworkDir
cd $FrameworkDir
rm -rf Pods.build/ Debug-iphoneos/ XCBuildData/ Pods_Runner.framework
BernardGatt

comment created time in a month

issue commentflutter/flutter

Adding to app without Cocoapods is causing signing problems on XCode 11.1

After looking at the device log I narrowed it down to the fact that all the exported Pod frameworks are missing the Info.plist file. Once I created the Info.plist file in each framework (with the correct CFBundleName & CFBundleExecutable) the app was able to be installed and run successfully on the device.

While going down this rabbit hole I noticed that even when building flutter using the --no-simulator flag it embeds a x86_64 into the Flutter.framework. For testing we should be fine but eventually when bundling for the app store we will have issues.

I'll post an updated build script later this eve.

BernardGatt

comment created time in a month

startedn8n-io/n8n

started time in a month

issue commentflutter/flutter

assert appProject.android != null ERROR

Same issue on Flutter (Channel master, v1.10.15-pre.60, on Mac OS X 10.15 19A583, locale en-MT)

420884853

comment created time in a month

issue commentflutter/flutter

Adding to app without Cocoapods is causing signing problems on XCode 11.1

Did you manage to replicate the issue @jmagman? Is there anything else I can try from my end?

BernardGatt

comment created time in a month

issue commentflutter/flutter

Crash on iOS release with a Flutter module

Have you tried running flutter clean and then running the build command in release right after? this will make sure you don't have the previous build in debug.

arctouch-matheusromao

comment created time in a month

issue commentflutter/flutter

Adding to app without Cocoapods is causing signing problems on XCode 11.1

Those steps are required if you want to embed flutter into an existing app without having to use cocoapods. My end goal (after figuring this out) is to actually bundle flutter into another framework which provides an easy to use swift interface.

The issue you're having should be related to the framework (Flutter or App) not being bundled which is a bit weird since you're using cocoapods, but it could be related to the framework not being signed and bundled.

BernardGatt

comment created time in a month

issue commentflutter/flutter

Adding to app without Cocoapods is causing signing problems on XCode 11.1

[✓] Flutter (Channel master, v1.10.15-pre.60, on Mac OS X 10.15 19A583, locale en-MT)
    • Flutter version 1.10.15-pre.60 at /Users/bernard/Development/flutter
    • Framework revision 6a63ef7d81 (2 hours ago), 2019-10-10 13:49:43 -0400
    • Engine revision 0b6aa5e320
    • Dart version 2.6.0 (build 2.6.0-dev.0.0 48e93d3d3b)

[✓] Android toolchain - develop for Android devices (Android SDK version 28.0.3)
    • Android SDK at /Users/bernard/Library/Android/sdk
    • Android NDK location not configured (optional; useful for native profiling support)
    • Platform android-28, build-tools 28.0.3
    • Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 1.8.0_202-release-1483-b49-5587405)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 11.1)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Xcode 11.1, Build version 11A1027
    • CocoaPods version 1.8.3

[✓] Android Studio (version 3.5)
    • Android Studio at /Applications/Android Studio.app/Contents
    • Flutter plugin version 40.1.2
    • Dart plugin version 191.8423
    • Java version OpenJDK Runtime Environment (build 1.8.0_202-release-1483-b49-5587405)

[✓] VS Code (version 1.38.1)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension version 3.4.1

[!] Connected device
    ! No devices available
BernardGatt

comment created time in a month

issue openedflutter/flutter

Adding to app without Cocoapods is causing signing problems on XCode 11.1

I've been following the effort around Add2App and recently there were some developments around embedding flutter without cocoapods see: https://github.com/flutter/flutter/issues/36968#issuecomment-533357802

With flutter on master and XCode 11 I was able to embed flutter in a separate app (not Runner) using the above steps and was able to successfully load the flutter app on a device.

After upgrading to XCode 11.1 I started getting issues about signing. Mainly Recovery Suggestion: Install claimed to have succeeded, but application could not be found on device. bundleId = com.test.app

created time in a month

push eventbourbonltd/engine-documentation

Bernard Gatt

commit sha c4390d5d133deeac2b3c47650ee4badb6c2a1263

Fixed issue with formatting

view details

push time in 2 months

push eventbourbonltd/engine-documentation

Bernard Gatt

commit sha 65404a702cbf25369f24bf4734e27bcbba69360d

Added Banking example project

view details

push time in 2 months

push eventbourbonltd/engine-documentation

Bernard Gatt

commit sha 19dbe8440327057b8dfd15640f2cff1be4bae72b

Fixed issue with fixed list parameters

view details

push time in 2 months

push eventbourbonltd/engine-documentation

Bernard Gatt

commit sha ab82436ab1f4a4440c050bee1308dab778e2b2a8

Added retain option to actionWidget

view details

push time in 2 months

push eventbourbonltd/engine-documentation

Bernard Gatt

commit sha 6839393d6c8ebc1b25c14caf8164f4d27eed9de0

Fixed typo

view details

push time in 2 months

push eventbourbonltd/engine-documentation

Bernard Gatt

commit sha abc977cad7572ca21f2e559459da4e315cec8927

Moved Bird readme in example folder

view details

push time in 2 months

push eventbourbonltd/engine-documentation

Bernard Gatt

commit sha 1f12d2e5dbab09a94e41b37ecc410fad2c202193

Cleaned up components

view details

push time in 2 months

create barnchbourbonltd/engine-documentation

branch : master

created branch time in 2 months

created repositorybourbonltd/engine-examples

Example apps and documentation

created time in 2 months

fork BernardGatt/rollbar-ios

Objective-C library for crash reporting and logging with Rollbar.

https://docs.rollbar.com/docs/ios

fork in 3 months

more