Software Archive
Read-only legacy content
Comunicados
FPGA community forums and blogs on community.intel.com are migrating to the new Altera Community and are read-only. For urgent support needs during this transition, please visit the FPGA Design Resources page or contact an Altera Authorized Distributor.
17060 Discussões

Editing .plist files in the XDK

Todd_S_4
Principiante
976 Visualizações

I ran across this thread in the old forum, and it's relevant to a problem I'm trying to solve, so I thought I would ask here. Is there an easier/better way to edit .plist files than creating a new plugin to do it as described in that thread?

0 Kudos
5 Respostas
John_H_Intel2
Funcionário
976 Visualizações

Currently there is no other solution, however we are exploring options with regards to this. As always, no expected date is available.

Todd_S_4
Principiante
976 Visualizações

Thanks for the update. The plugin system worked just fine for my issue, I was just wondering if there was an easier way to do it.

John_H_Intel2
Funcionário
976 Visualizações

Perhaps you could share your plugin system for other to use?

Maybe include a directions/steps necessary to achieve what you wanted?

Thanks!

Todd_S_4
Principiante
976 Visualizações

As it turns out, the fix I made probably didn't do anything. The Cordova Geolocation plugin actually made all the changes necessary for me. I'm not sure if my fix actually does anything, but I'll post it here anyways as a starting point for someone having the same problems.

My fix was to add the following code to intelxdk.config.additions.xml (based on this stackoverflow answer):

<config-file platform="ios" target="*-Info.plist" parent="NSLocationAlwaysUsageDescription" overwrite="false">
    <array>
        <string>NSLocationAlwaysUsageDescription</string>
    </array>
</config-file>

That does update the config xml files in the xdk, but I'm not sure that it actually affects the .plist file.

Since then, I've read that fixing permissions can also be done by creating a blank cordova plugin with the updated permissions (as described in the forum thread in my original post). Since the Geolocation plugin was able to update permissions, this solution makes sense. However, I haven't tested it.

Hopefully this helps someone.

 

Declan_M_
Principiante
976 Visualizações

I don't have an intelxdk.config.additions.xml file in my folder?

Since IOS 9 came out I need to modify the plist file according to: https://gist.github.com/mlynch/284699d676fe9ed0abfa

 

Responder