TheM4hd1 / SwiftyInsta

Instagram Private API Swift
MIT License
225 stars 51 forks source link

Client is missing required entitlement #198

Closed borisdipner closed 4 years ago

borisdipner commented 4 years ago

After using login for >= 12 iOS - I got this

20-07-05 13:52:53.524581+0600 InstaPro[15062:971119] [ProcessSuspension] 0x1110fd690 - ProcessAssertion() PID 15062 Unable to acquire assertion for process with PID 15117 2020-07-05 13:52:53.524722+0600 InstaPro[15062:961869] [ProcessSuspension] 0x1110fd690 - ProcessAssertion::processAssertionWasInvalidated() 2020-07-05 13:52:53.526214+0600 InstaPro[15062:971119] [assertion] Error acquiring assertion: <NSError: 0x600000242910; domain: RBSAssertionErrorDomain; code: 2; reason: "Client is missing required entitlement"> { userInfo = { RBSAssertionAttribute = <RBSLegacyAttribute: 0x7fc1dfc2aac0; requestedReason: FinishTaskUnbounded; reason: FinishTaskUnbounded; flags: PreventTaskSuspend>; } }

sbertix commented 4 years ago

Nothing to do with SwiftyInsta, per se, it's about background mode.\ Apparently you are using some feature related to it without enabling it from the project settings.\ Go to your target settings, select Signing & Capabilities from the tab bar, + Capability and choose the specific background mode you require.

borisdipner commented 4 years ago

I made it but still getting this error

sbertix commented 4 years ago

I genuinely can't seem to replicate this.\ Do you mind providing more info?