wow, update plugin

This commit is contained in:
Hailey
2024-06-17 08:55:20 -07:00
parent 9e3845d0c9
commit 96697eb440
@@ -7,8 +7,11 @@ const withXcodeTarget = (config, {targetName}) => {
return withXcodeProject(config, config => {
const pbxProject = config.modResults
const target = pbxProject.addTarget(targetName, 'application', targetName)
target.pbxNativeTarget.productType = `"com.apple.product-type.application.on-demand-install-capable"`
const target = pbxProject.addTarget(
targetName,
'application_on_demand_install_capable',
targetName,
)
pbxProject.addBuildPhase(
BUILD_PHASE_FILES.map(f => `${targetName}/${f}`),
'PBXSourcesBuildPhase',
@@ -53,12 +56,6 @@ const withXcodeTarget = (config, {targetName}) => {
pbxProject.addTargetAttribute('DevelopmentTeam', 'B3LX46C5HS', targetName)
console.log(
pbxProject.getTarget(
'com.apple.product-type.application.on-demand-install-capable',
),
)
if (!pbxProject.hash.project.objects.PBXTargetDependency) {
pbxProject.hash.project.objects.PBXTargetDependency = {}
}