DHowett / go-plist

A pure Go Apple Property List transcoder
Other
414 stars 96 forks source link

Nested array - CustomURL - CFBundleURLSchemes #45

Closed Massad closed 5 years ago

Massad commented 5 years ago

Unable to reach to the custom URL values as seen below.

Screen Shot 2019-08-15 at 10 14 40 PM

Is there any way to capture them? I've reached to this result: [{[myapp myapp2]}] but i'll need to strip it and it's not efficient.

type CFBundleURLTypes struct {
    URLS []string `plist:"CFBundleURLSchemes"`
}

type iosPlist struct {
    CFBundleName         string             `plist:"CFBundleName"`
    CFBundleDisplayName  string             `plist:"CFBundleDisplayName"`
    CFBundleVersion      string             `plist:"CFBundleVersion"`
    CFBundleShortVersion string             `plist:"CFBundleShortVersionString"`
    CFBundleIdentifier   string             `plist:"CFBundleIdentifier"`
    CFBundleURLSchemes   []CFBundleURLTypes `plist:"CFBundleURLTypes"`
}
DHowett commented 5 years ago

(did you close this because you solved it, or because it wasn't responded to? this seems like it should work, so should be a valuable bug to track.)