开发者社区> 问答> 正文

iOS和Firebase应用程序分发不想用开发配置文件签署应用程序并分发它

我对Firebase应用程序的分发有问题。我使用的是Xcode 11,还有新的iOS开发证书,即苹果开发证书。

我增加了FastLane,在FastLane中增加了用于防火墙应用程序分发的插件。

但是,当我执行我的通道来分发应用程序时,会出现错误。

note: Using new build system
[19:55:21]: ▸ note: Planning build
[19:55:21]: ▸ note: Constructing build description
[19:55:21]: ▸ error: No profile for team 'TEAM_ID' matching 'App Name Development' found: Xcode couldn't find any provisioning profiles matching 'TEAM_ID/App Name Development'. Install the profile (by dragging and dropping it onto Xcode's dock item) or select a different one in the Signing & Capabilities tab of the target editor. (in target 'AppNameDev' from project 'AppName')

我有类似的配置和快车道与这个插件的其他应用程序,但运行在Xcode 10,我认为它有旧的证书iOS开发,而不是新的苹果开发,它的构建和分发正确。

我可以使用Archive构建这个应用程序,导出.ipa,并通过Firebase控制台手动分发它,它可以工作。

我也有这样的错误信息

There seems to be a mismatch between your provided `export_method` in gym
[19:55:21]: and the selected provisioning profiles. You passed the following options:
[19:55:21]:   export_method:      
[19:55:21]:   Bundle identifier:  com.company.AppNameDev
[19:55:21]:   Profile name:       App Name Development
[19:55:21]:   Profile type:       development

因此,它只是建议配置文件名、类型和包id,我已经在Build_IOS_app中的Fastfile文件中正确地键入了这些id。

desc "Firebase App Distribution to testers"
  lane :firebase_distribution do 
        build_ios_app(
           workspace: "AppName.xcworkspace", 
                   configuration: "Release", 
           scheme: "AppName Dev",
           silent: true,
           clean: true,
           output_directory: "firebase-builds",
           output_name: "appname.ipa", 
           sdk: "iphoneos13.1",
           export_options: {
                method: "development",
                   provisioningProfiles: { 
                    "com.company.AppNameDev" => "App Name Development"
                   }
            }
        )

        firebase_app_distribution(
                   app: "<id goes here>",
               testers_file: "fastlane/crashlytics_testers.txt",
                   release_notes: "Lots of amazing new features to test out!",
                   firebase_cli_path: "/usr/local/bin/firebase"
                )
    end 
end

展开
收起
游客5akardh5cojhg 2019-12-11 21:38:20 1167 0
0 条回答
写回答
取消 提交回答
问答排行榜
最热
最新

相关电子书

更多
手淘iOS性能优化探索 立即下载
From Java/Android to Swift iOS 立即下载
深入剖析iOS性能优化 立即下载