Skip to content

[Question] Why does Mapbox try to use CoreMotion? #4813

@iafan

Description

@iafan

When compiling default iOS examples, I noticed that Xcode gives the following warning:

{"msg":"#Warning Error reading file", "file":"\/\/private\/var\/Managed Preferences\/mobile\/com.apple.CoreMotion.plist", "error":"Error Domain=NSCocoaErrorDomain Code=257 \"The file “com.apple.CoreMotion.plist” couldn’t be opened because you don’t have permission to view it.\" UserInfo={NSFilePath=\/\/private\/var\/Managed Preferences\/mobile\/com.apple.CoreMotion.plist, NSURL=file:\/\/\/\/private\/var\/Managed%20Preferences\/mobile\/com.apple.CoreMotion.plist, NSUnderlyingError=0x103048c90 {Error Domain=NSPOSIXErrorDomain Code=1 \"Operation not permitted\"}}"}

which indicates that CoreMotion capability is not present.

This can be fixed by adding this capability to info.plist, like this:

	<key>NSMotionUsageDescription</key>
	<string>This app uses motion data to [... insert your explanation here ...]</string>

But I wonder if it's actually needed by MapBox (and if it is, should this capability be included in all examples with some reasonable description)?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions