I want to disable the photo authorization dialog when running tests in iOS Simulator. For this, I include Entitlements.plist as indicated here .
<?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>com.apple.private.tcc.allow.overridable</key>
<array>
<string>kTCCServiceAddressBook</string>
<string>kTCCServiceCalendar</string>
<string>kTCCServicePhotos</string>
</array>
</dict>
</plist>
This work is great locally when I sign an application with my developer certificate. However, I want to run these tests on CI (Travis CI in particular) without downloading the certificate. When I do not sign the application, Xcode is beautiful enough to give me the following warning:
Warning. Features that require permissions from “Supporting Files / Entitlements.plist” may not work in the simulator because the target “test host” does not have a valid iOS code signing identifier.
?
