Page 1 of 1

Info.plist Build Error

Posted: 19 Nov 2015 09:29
by spaceace76
Have been trying to compile but keep getting this error:

WatchKit Extension doesn't contain any WatchKit apps whose bundle identifiers match "org.videolan.vlc-ios.watchkitapp". Verify that the value of WKAppBundleIdentifier in your WatchKit Extension's Info.plist matches the value of CFBundleIdentifier in your WatchKit App's Info.plist.


ValidateEmbeddedBinary /Users/mojado/Library/Developer/Xcode/DerivedData/VLC_for_iOS-bdqigispsecwakfuwghljywrdliw/Build/Products/Debug-iphoneos/VLC\ for\ iOS.app/PlugIns/VLC\ for\ iOS\ WatchKit\ Extension.appex
cd /Users/mojado/Desktop/VLC-iOS-2.6.6-6f0a04b66f888db4fe3407052cd4229d821437b3
export PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin"
builtin-embeddedBinaryValidationUtility /Users/mojado/Library/Developer/Xcode/DerivedData/VLC_for_iOS-bdqigispsecwakfuwghljywrdliw/Build/Products/Debug-iphoneos/VLC\ for\ iOS.app/PlugIns/VLC\ for\ iOS\ WatchKit\ Extension.appex -signing-cert 7688A34CF965AB09C837E67ADF9998B2A1759D6D -info-plist-path /Users/mojado/Library/Developer/Xcode/DerivedData/VLC_for_iOS-bdqigispsecwakfuwghljywrdliw/Build/Products/Debug-iphoneos/VLC\ for\ iOS.app/Info.plist


Have checked every file named Info.plist on my machine and verified that the appropriate files have the correct code signs (my own). I can't locate the file the error specifies, so I'm not sure what it is I'm missing here?

Re: Info.plist Build Error

Posted: 19 Nov 2015 16:54
by toco
This issue has nothing to do with code signing.

The error message is telling you that

Code: Select all

WKCompanionAppBundleIdentifier
in

Code: Select all

VLC for iOS WatchKit App/Info.plist
and

Code: Select all

NSExtension.NSExtensionAttributes.WKAppBundleIdentifier
in

Code: Select all

VLC for iOS WatchKit Extension/Info.plist
must match.

Please verify that both values are correctly adjusted.

In the master brach of the git repo we made it easier to change the bundle identifier prefix to your own.

Re: Info.plist Build Error

Posted: 22 Nov 2015 10:55
by spaceace76
Thank you for the help!

It turned out the WKAppBundleIdentifier value wasn't correct, fixed that and the build is now good to go, aside from a new error...

I got an error about provisioning profiles and adding an App Groups entitlement to my app ID. Under app groups in capabilities, I added my code sign to the app groups, as in "groups.(my bundle ID)", the watch kit app and extension took to my app group with no issue but Vlc-ios won't allow Xcode to fix the issue. Under the app groups steps it says: The iCloud feature is only available to users enrolled in Apple Developer Program... etc"

This is the specific error:
Code Sign error: No matching provisioning profiles found: None of the valid provisioning profiles allowed the specified entitlements: com.apple.developer.ubiquity-kvstore-identifier, com.apple.developer.icloud-container-identifiers, com.apple.developer.icloud-services, com.apple.security.application-groups, com.apple.developer.ubiquity-container-identifiers

It seems upset that I'm not enrolled in the Developer Program and is complaining that some iCloud features won't work. I deleted my provisioning profiles in Xcode profiles and reformed them to no avail. Any ideas?

Re: Info.plist Build Error

Posted: 22 Nov 2015 17:23
by fkuehne
You need to remove those features from the Xcode build configuration if you don't have access to a Developer Membership at Apple, I fear.

Re: Info.plist Build Error

Posted: 23 Nov 2015 04:18
by spaceace76
How can i do that? Will the app still run?

I appreciate all the help so far guys!

Re: Info.plist Build Error

Posted: 23 Nov 2015 12:22
by spaceace76
I went to VLC for iOS.xcodeproj contents, opened project.pbxproj, and set com.apple.icloud enabled = 0

The app group ID now agrees with my app and bundle ID's across the board. But i still get this dialog box when building:

"No matching provisioning profiles found: None of the valid provisioning profiles allowed the specified entitlements: com.apple.developer.ubiquity-kvstore-identifier, com.apple.developer.icloud-container-identifiers, com.apple.developer.icloud-services, com.apple.security.application-groups, com.apple.developer.ubiquity-container-identifiers"

It gives me the option to allow Xcode to fix the problem, and when clicking that option Xcode returns this error:

"The 'iCloud' feature is only available to users enrolled in Apple Developer Program. Please visit
https://developer.apple.com/programs/ to enroll."

so it seems like i have to somehow remove these entitlements (checked my entitlements file and have no idea how to disable these) or remove iCloud altogether?

Re: Info.plist Build Error

Posted: 28 Jan 2016 16:20
by Bushi
Had a similar issue. In Xcode 7 you need to go in the "Capabilities" tab in the settings of the application, and disable every capability you haven't access to: iCloud, KeyChain Sharing, etc. (Did not develop for iOS in a long time so this was new to me)