Skip to content
This repository has been archived by the owner on May 27, 2020. It is now read-only.

Commit

Permalink
only iPhoneOS should be added to CFBundleSupportedPlatforms
Browse files Browse the repository at this point in the history
  • Loading branch information
jonasbark committed Jan 30, 2019
1 parent 1a8a4a1 commit c58179a
Showing 1 changed file with 12 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,18 @@ open class CocoapodsCompileTask : DefaultTask() {
exec.executable = "/usr/libexec/PlistBuddy"
exec.args = listOf("-c", "Delete :UIRequiredDeviceCapabilities", plistPath)
}.rethrowFailure().assertNormalExitValue().exitValue

// Clear supported platforms
project.exec { exec ->
exec.executable = "/usr/libexec/PlistBuddy"
exec.args = listOf("-c", "Delete :CFBundleSupportedPlatforms:0", plistPath)
}.rethrowFailure().assertNormalExitValue()

// only add iPhoneOS as supported platform
project.exec { exec ->
exec.executable = "/usr/libexec/PlistBuddy"
exec.args = listOf("-c", "Add :CFBundleSupportedPlatforms:0 string iPhoneOS", plistPath)
}.rethrowFailure().assertNormalExitValue()
}
}
}

0 comments on commit c58179a

Please sign in to comment.