在iPhone中的应用内检索电子邮件 [英] Retrieve E-mail in In-app in iPhone

查看:181
本文介绍了在iPhone中的应用内检索电子邮件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

目前我的项目在IOS开发目标3.2中工作得很完善,但是一旦开发目标为4.0或更高版本。它给我错误。以下是错误:

  Ld / Users / taxsmart2 / Library / Developer / Xcode / DerivedData / MessageUI-cmsggqfkxarvsnaizxfrkvsmggwj / Build / Products /Debug-iphonesimulator/MessageUI.app/MessageUI normal i386 
cd / Users / taxsmart2 / Desktop / ipad
setenv MACOSX_DEPLOYMENT_TARGET 10.6
setenv PATH/Developer/Platforms/iPhoneSimulator.platform/Developer/ usr / bin:/ Developer / usr / bin:/ usr / bin:/ bin:/ usr / sbin:/ sbin
/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/llvm-gcc- 4.2 -arch i386 -isysroot /Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator4.3.sdk -L / Users / taxsmart2 / Library / Developer / Xcode / DerivedData / MessageUI-cmsggqfkxarvsnaizxfrkvsmggwj / Build / Products / Debug-iphonesimulator -F / Users / taxsmart2 / Library / Developer / Xcode / DerivedData / MessageUI-cmsggqfkxarvsnaizxfrkvsmggwj / Build / Products / Debug-iphonesimulator -F / Developer / Platforms / iPhoneSimulator.platform / Developer / SDKs / iPhoneSimulator3.1.3.sdk / System / Library /框架-F / Developer / Platforms / iPhoneSimulator.platform / Developer / SDKs / iPhoneSimulator4.3.sdk / System / Library / Frameworks / CoreServices.framework / Versions / A / Frameworks -F / Developer / Platforms / iPhoneSimulator.platform / Developer / SDK / iPhoneSimulator4.3.sdk / System / Library / Frameworks / CoreServices.framework / Versions / A / Frameworks -F / Developer / Platforms / iPhoneSimulator.platform / Developer / SDKs / iPhoneSimulator3.1.3.sdk / System / Library / Frameworks - F / Users / taxsmart2 / Desktop / ipad / libxml -F / Users / taxsmart2 / Desktop / ipad / ASIHttpRequest / Frameworks -filelist / Users / taxsmart2 / Library / Developer / Xcode / DerivedData / MessageUI-cmsggqfkxarvsnaizxfrkvsmggwj / Build / Intermediates / MessageUI。 build / Debug-iphonesimulator / MessageUI.build / Objects-normal / i386 / MessageUI.LinkFileList -mmacosx-version-min = 10.6 -Xlinker -objc_abi_version -Xlinker 2 -lxml2 -D__IPHONE_OS_VERSION_MIN_REQUIRED = 40300 -framework UIKit -framework CoreGraphics -framework MessageUI - 框架基础 - 框架CoreFoundation -framework MobileCoreSe rvices -framework SystemConfiguration -lz.1.2.3 -framework CFNetwork -o /Users/taxsmart2/Library/Developer/Xcode/DerivedData/MessageUI-cmsggqfkxarvsnaizxfrkvsmggwj/Build/Products/Debug-iphonesimulator/MessageUI.app/MessageUI

ld:warning:找不到选项'-F / Developer / Platforms / iPhoneSimulator.platform / Developer / SDKs / iPhoneSimulator3.1.3.sdk / System / Library / Frameworks'的目录
ld:warning:directory not发现选项'-F / Developer / Platforms / iPhoneSimulator.platform / Developer / SDKs / iPhoneSimulator3.1.3.sdk / System / Library / Frameworks'
ld:warning:找不到选项'-F / Users / taxsmart2 / Desktop / ipad / ASIHttpRequest / Frameworks'
架构i386的未定义符号:
_OBJC_CLASS _ $ _ MessageWebLayer,引用来自:
objc-class-ref in MessageUIAppDelegate.o
ld:没有找到符号i386
collect2:ld返回1退出状态

另外在上面的错误显示在我ssageWebLayer 相同github上的。那么在构建设置或开发目标中需要做哪些更改才能在iOS 4.0或更高版本上运行。我在构建设置中尝试了很多变化,但是在github中的链接表示,在4.0或更高版本中不支持MessageWebLayer。任何人都可以帮助我吗?



如果这个代码不可能,那么iPhone中的其他类可以让我在In-App中检索电子邮件? / p>

解决方案

没有公开API可以从iOS中的邮件应用程序中检索电子邮件标识。


Currently my project is working perfectly on IOS development target 3.2 But as soon as i will do development target 4.0 or higher. It gives me error. Following is the error:

Ld /Users/taxsmart2/Library/Developer/Xcode/DerivedData/MessageUI-cmsggqfkxarvsnaizxfrkvsmggwj/Build/Products/Debug-iphonesimulator/MessageUI.app/MessageUI normal i386
    cd /Users/taxsmart2/Desktop/ipad
    setenv MACOSX_DEPLOYMENT_TARGET 10.6
    setenv PATH "/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Developer/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin"
    /Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/llvm-gcc-4.2 -arch i386 -isysroot /Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator4.3.sdk -L/Users/taxsmart2/Library/Developer/Xcode/DerivedData/MessageUI-cmsggqfkxarvsnaizxfrkvsmggwj/Build/Products/Debug-iphonesimulator -F/Users/taxsmart2/Library/Developer/Xcode/DerivedData/MessageUI-cmsggqfkxarvsnaizxfrkvsmggwj/Build/Products/Debug-iphonesimulator -F/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator3.1.3.sdk/System/Library/Frameworks -F/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator4.3.sdk/System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks -F/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator4.3.sdk/System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks -F/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator3.1.3.sdk/System/Library/Frameworks -F/Users/taxsmart2/Desktop/ipad/libxml -F/Users/taxsmart2/Desktop/ipad/ASIHttpRequest/Frameworks -filelist /Users/taxsmart2/Library/Developer/Xcode/DerivedData/MessageUI-cmsggqfkxarvsnaizxfrkvsmggwj/Build/Intermediates/MessageUI.build/Debug-iphonesimulator/MessageUI.build/Objects-normal/i386/MessageUI.LinkFileList -mmacosx-version-min=10.6 -Xlinker -objc_abi_version -Xlinker 2 -lxml2 -D__IPHONE_OS_VERSION_MIN_REQUIRED=40300 -framework UIKit -framework CoreGraphics -framework MessageUI -framework Foundation -framework CoreFoundation -framework MobileCoreServices -framework SystemConfiguration -lz.1.2.3 -framework CFNetwork -o /Users/taxsmart2/Library/Developer/Xcode/DerivedData/MessageUI-cmsggqfkxarvsnaizxfrkvsmggwj/Build/Products/Debug-iphonesimulator/MessageUI.app/MessageUI

ld: warning: directory not found for option '-F/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator3.1.3.sdk/System/Library/Frameworks'
ld: warning: directory not found for option '-F/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator3.1.3.sdk/System/Library/Frameworks'
ld: warning: directory not found for option '-F/Users/taxsmart2/Desktop/ipad/ASIHttpRequest/Frameworks'
Undefined symbols for architecture i386:
  "_OBJC_CLASS_$_MessageWebLayer", referenced from:
      objc-class-ref in MessageUIAppDelegate.o
ld: symbol(s) not found for architecture i386
collect2: ld returned 1 exit status

Also in above error shows in MessageWebLayer which is same as on github. So What changes i need to do in Build Settings or Development target to run on iOS 4.0 or higher. I tried lots of changes in build settings but then Link in github says MessageWebLayer is not supported in 4.0 or higher. Can any one help me in this matter?

If it is not possible for this code then what other classes in iPhone allows me to retrieve email in In-App??

解决方案

There is no public api's to retrieve Email Id from Mail app in iOS.

这篇关于在iPhone中的应用内检索电子邮件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆