New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Resource bundles not adding targeted device family when included in an Apple Watch target #9075
Comments
Probably something we can fix yes. Code already had a comment for it but things may have changed here. Is it a watchOS extension or app? |
We are including this pod in the extension target. |
I could create a PR but I'm not sure if we should append the device family to support watch or replace with simply the watch device family. The 'right' solution to me would be to only have the watch device family, but maybe these resource bundles get copied from the phone to the watch and need to support all three? |
Havent investigated much myself but best rubrik is to immitate what Xcode 10.2 does. I.e do the same without CocoaPods in Xcode and see what it sets it to. Then we can change it here. |
I assume you mean 10.3 now? I'll try to take a look today or early next week. |
Yea thats fine 10.3, latest stable release, not Xcode 11 beta. |
This is what I see when I create a resource bundle, change the base sdk to watch os and compile with Xcode 10.3. It sets the UIDeviceFamily to 4, but if you look at the targeted device family in Xcode it does not automatically set that at all. For the framework that contains the device bundle, it's targeted device family is also only set to 4. The safest change is to just add the watch device target family to the existing array. |
Ok, I've create a branch with the fix, but don't have push permissions. How do I submit a PR? |
Fork the repo and make a PR between the two repos |
Report
What did you do?
Added a pod containing a framework and resource bundle target for the Watch OS platform.
What did you expect to happen?
I expected it to be added to my project without any errors or warnings
What happened instead?
Xcode is displaying a warning that the Info.plist generated for the resource bundle by CocoaPods does not contain any device family values compatible with the watchOS platform. CocoaPods does properly generate the Info.plist file for the framework specified for this pod, but not the resource bundle plist. This is currently happening the DeviceGuru pod.
ProcessInfoPlistFile /Users/xxx-watchos/DeviceGuru/DeviceGuru.bundle/Info.plist xxx/Pods/Target\ Support\ Files/DeviceGuru/ResourceBundle-DeviceGuru-DeviceGuru-Info.plist (in target: DeviceGuru-DeviceGuru)
cd /xxx/Pods
builtin-infoPlistUtility /xxx/Pods/Target\ Support\ Files/DeviceGuru/ResourceBundle-DeviceGuru-DeviceGuru-Info.plist -producttype com.apple.product-type.bundle -expandbuildsettings -format binary -platform watchos -o /xxx/Library/Developer/Xcode/DerivedData/esfpxpymkdrnvncrhykmgjnlqtan/Build/Products/Debug\ xxx-watchos/DeviceGuru/DeviceGuru.bundle/Info.plist
warning: TARGETED_DEVICE_FAMILY value (1,2) does not contain any device family values compatible with the watchOS platform. Please add the value '4' to the TARGETED_DEVICE_FAMILY build setting to indicate that this target supports the 'watch' device family.
CocoaPods Environment
Stack
Installation Source
Plugins
Podfile
The text was updated successfully, but these errors were encountered: