TrollStore icon indicating copy to clipboard operation
TrollStore copied to clipboard

MFMailComposeViewController canSendMail returns NO.

Open s8ngyu opened this issue 3 years ago • 7 comments

As title, If an IPA using that method installed with TrollStore, It will return false even if the mail accounts are available.

But the same IPA installed with proper method (code signing, Xcode, etc), It works fine.

s8ngyu avatar Sep 17 '22 15:09 s8ngyu

this probably can be solved with some private entitlement, idk which one tho

opa334 avatar Sep 17 '22 15:09 opa334

maybe try com.apple.private.tcc.allow

opa334 avatar Sep 17 '22 15:09 opa334

Added

<key>com.apple.private.tcc.allow</key>
<true/>

to entitlement, same result.

Unable to initialize due to + [MFMailComposeViewController canSendMail] returns NO.

s8ngyu avatar Sep 17 '22 15:09 s8ngyu

Try

<key>com.apple.managedconfiguration.profiled-access</key>
<true/>

opa334 avatar Sep 17 '22 15:09 opa334

Same.

s8ngyu avatar Sep 17 '22 15:09 s8ngyu

Hmm idk then

hasMailAccountsWithFilteringEnabled:sourceAccountManagement:completion: seems to be the check that fails inside the profiled daemon, maybe look for yourself

opa334 avatar Sep 17 '22 15:09 opa334

I'll update this thread when I find a solution.

s8ngyu avatar Sep 17 '22 16:09 s8ngyu