Coder Social home page Coder Social logo

Comments (7)

cybrox avatar cybrox commented on June 20, 2024 1

Thanks for the feedback @ollyde!

I'll use this issue as an additional test case when working on it, then.

If you have to re-visit this before I get around to PR the changes... I finally switched our app over from fastlane last week, this is the config I'm using:

output: dist/

releases:
  - name: ios
    jobs:
      - name: ios-production
        package:
          platform: ios
          target: ipa
          build_args:
            export-options-plist: ./ios/Runner/Ipa-Export-Prod.plist
            flavor: prod  # only needed when using flavors
            dart-define:  # "
              ENV: prod   # "
        publish:
          target: appstore

from flutter_distributor.

lijy91 avatar lijy91 commented on June 20, 2024

You need to create the distribute_options.yaml file in the project root directory

from flutter_distributor.

ollyde avatar ollyde commented on June 20, 2024

@lijy91 yes I have that. I have an existing version working with MacOS but it throws this error all the time for iOS.

from flutter_distributor.

lijy91 avatar lijy91 commented on June 20, 2024

Can you provide your distribute_options file?

from flutter_distributor.

ollyde avatar ollyde commented on June 20, 2024
output: dist/
releases:
  - name: prod
    jobs:
      - name: release-macos
        package:
          platform: macos
          target: zip
          build_args:
            dart-define:
              APP_ENV: prod
      # See full documentation: https://distributor.leanflutter.org/configuration/makers/exe
      - name: release-windows
        package:
          platform: windows
          target: msix
          build_args:
            dart-define:
              APP_ENV: prod
      - name: release-ios
        jobs:
          - name: release-ios
            package:
              platform: ios
              target: ipa
              build_args:
                target: lib/main.dart
                export-options-plist: ios/ExportOptions.plist
            publish:
              target: appstore

Run with command flutter_distributor release --name prod --jobs release-ios

Getting a new error
type 'Null' is not a subtype of type 'Map<String, dynamic>'

ExportOptions.plist looks like so

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
	<key>method</key>
	<string>app-store</string>
	<key>teamID</key>
	<string>J33N27XXX</string>
	<key>uploadBitcode</key>
	<true/>
	<key>compileBitcode</key>
	<true/>
	<key>uploadSymbols</key>
	<true/>
	<key>signingStyle</key>
	<string>manual</string>
	<key>signingCertificate</key>
	<string>iOS Distribution</string>
	<key>provisioningProfiles</key>
	<dict>
		<key>com.polydelic.testapp</key>
		<string>App Release</string>
	</dict>
</dict>
</plist>

from flutter_distributor.

cybrox avatar cybrox commented on June 20, 2024

@ollyde is this still an issue for you or did you find a solution?

I've worked on improving docs/checks for this package on a command-line level.
I'd work on the config file based issues next when I find time.
If this is still relevant to you, I could keep an eye on it while I'm at it.

from flutter_distributor.

ollyde avatar ollyde commented on June 20, 2024

@cybrox i switched back to fastlane but I’ve got a task to revise this library as I don’t like fastlane and using a lib would be way better.

from flutter_distributor.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.