0

所以我最近刚刚在我的项目中添加了一个 POD,然后要求我使用/加载工作区而不是单个项目。这一切都很好,但现在我们用于最终构建项目的构建脚本(见下文)将成功构建,但在安装时,我在尝试安装时检查设备控制台日志(粘贴在下面的一些行)时发现由于父包标识符与子包相同(我假设这是指我添加的这个库 - JSONWebToken),因此它无法这样做。

我想我的问题是我该如何解决这个问题?我们有一个附加了适当 bundleId 的脚本(我们有多个从同一个代码库构建的应用程序)。在我看来,xcodebuild 将正确地将此 bundleId 用于主应用程序,但它也将它用于 POD 包。如何使用 xcodebuild 解决这个问题?

xcodebuild -workspace "CompanyOne.xcworkspace" -scheme "Arrow" -configuration "Release" archive -archivePath "~/Library/Developer/Xcode/Archives/2021-12-01/Envoy Bag Drop 12-01-21 11.23 PM.xcarchive" -allowProvisioningUpdates PRODUCT_BUNDLE_IDENTIFIER=com.companyone.retail.demo PRODUCT_NAME="Envoy Bag Drop" GCC_PREPROCESSOR_DEFINITIONS='USE_SKIN_INCLUDE=1 RETAIL=1 SKIN_OVERRIDE_KEY=@\"*retail\"' | tee "/tmp/_xc-archive_envoy-demo_Release/build.log" | grep --color -E 'warning:|error:'
installd        0x16b54f000 -[MIInstallableBundle performPreflightWithError:]: 433: The parent bundle has the same identifier (com.luxerone.retail.demo) as sub-bundle at /var/installd/Library/Caches/com.apple.mobile.installd.staging/temp.DUYvYU/extracted/Payload/Arrow.app/Frameworks/JWT.framework
default 17:31:21.582751-0800    installd        0x16b54f000 -[MIInstaller performInstallationWithError:]: Preflight stage failed
default 17:31:21.582992-0800    runningboardd   Invalidating assertion 31-271-3129 (target:system) from originator [daemon<com.apple.mobile.installd>:271]
4

0 回答 0