我一直在尝试编辑我的info.plist以使用地理位置,每次我保存文件时都可以,但是在重新运行构建时,它会恢复为默认格式,而不进行任何更改。任何人都可以帮忙,下面是有问题的文件。
<?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>LastAccessedDate</key>
<date>2019-07-03T05:00:01Z</date>
<key>WorkspacePath</key>
<string>/Users/JingoLine/repAsc/ios/repAsc.xcworkspace</string>
<key>NSLocationWhenInUseUsageDescription</key>
<string>Your location is required for xyz benefits for you</string>
</dict>
</plist>
在重新运行时,它返回到:
<?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>LastAccessedDate</key>
<date>2019-07-03T05:00:01Z</date>
<key>WorkspacePath</key>
<string>/Users/JingoLine/repAsc/ios/repAsc.xcworkspace</string>
</dict>
</plist>