ios - 通过电话间隙iOS发送电子邮件的问题
<p><p>根据<a href="https://stackoverflow.com/questions/5069328/phonegap-email-composer-plugin" rel="noreferrer noopener nofollow">PhoneGap Email Composer Plugin</a> .我在我的项目中添加了 <code>.m</code>、<code>.h</code>、<code>js</code> 和框架。但我不知道为什么,它有很多警告和错误。</p>
<p><strong>警告:</strong></p>
<blockquote>
<p>/Users/mc228/project/platforms/ios/WorkplaceInspection/Plugins/de.appplant.cordova.plugin.email-composer/APPEmailComposer.m:396:18: Implicit conversion loses integer precision: 'NSUInteger' (aka 'unsigned long') to 'int'</p>
</blockquote>
<p><strong>错误</strong></p>
<pre>/Users/mc228/project/platforms/ios/EmailComposer.m:158:30: 'presentModalViewController:animated:' 已弃用:首先在 iOS 6.0 中弃用
/Users/mc228/project/platforms/ios/EmailComposer.m:162:19:'release'不可用:在自动引用计数模式下不可用
/Users/mc228/project/platforms/ios/EmailComposer.m:162:19:ARC 禁止发送“发布”的显式消息
/Users/mc228/project/platforms/ios/EmailComposer.m:190:17: 'dismissModalViewControllerAnimated:' 已弃用:首先在 iOS 6.0 中弃用
</pre>
<p>我也尝试使用 <a href="https://stackoverflow.com/questions/8633903/files-doesnt-support-the-arc-feature-how-to-deal-with" rel="noreferrer noopener nofollow">Files doesn't support the ARC feature, how to deal with</a>来解决,但它提出了更多的问题,例如:</p>
<ol>
<li><p><code>“_OBJC_CLASS_$_MFMailComposeViewController”</code>,引用自:</p></li>
<li><p><code>“_OBJC_CLASS_$_MFMailComposeViewController”</code>,引用自:</p></li>
</ol>
<p>所有这些问题都来自 <code>EmailComposer.m</code> 文件。有人帮我解决这个问题吗?</p>
<p>另外,我没有使用 Objective C,我使用 HTML、CSS 和 JavaScript 来构建 iOS 应用程序。</p></p>
<br><hr><h1><strong>Best Answer-推荐答案</ strong></h1><br>
<p><p>看起来您已经从旧版本的插件手动添加文件以及通过 <code>cordova plugin add</code> 安装最新版本,不应该有 EmailComposer.m 或 EmailComposer.h: </p>
<p> <a href="https://github.com/katzer/cordova-plugin-email-composer/tree/master/src/ios" rel="noreferrer noopener nofollow">https://github.com/katzer/cordova-plugin-email-composer/tree/master/src/ios</a> </p>
<p>删除您手动添加的所有文件以及您添加的所有引用,Cordova CLI 会处理此问题。</p></p>
<p style="font-size: 20px;">关于ios - 通过电话间隙iOS发送电子邮件的问题,我们在Stack Overflow上找到一个类似的问题:
<a href="https://stackoverflow.com/questions/25165409/" rel="noreferrer noopener nofollow" style="color: red;">
https://stackoverflow.com/questions/25165409/
</a>
</p>
页:
[1]