2011-10-10 148 views
0

目前我的項目在IOS開發目標3.2上運行良好,但只要我的目標是開發目標4.0或更高。它給了我錯誤。以下是錯誤:在iPhone中的應用程序中檢索電子郵件

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 

此外,在上述錯誤顯示MessageWebLayer其是相同上github。因此,我需要在構建設置或開發目標中執行哪些更改才能在iOS 4.0或更高版本上運行。我在構建設置中嘗試了很多更改,但是然後github中的Link說在4.0或更高版本中不支持MessageWebLayer。任何人都可以幫助我解決這個問題嗎?

如果這段代碼不可能,那麼iPhone中的其他類允許我在In-App中檢索電子郵件?

回答

0

沒有公開的API可以從iOS中的郵件應用中檢索電子郵件ID。

相關問題