cybertk / leveldb-darwin

Google LevelDB for macOS/iOS
http://github.com/google/leveldb
MIT License
18 stars 10 forks source link

Cannot compile for iOS #1

Closed cybertk closed 10 years ago

cybertk commented 10 years ago

When integrate 1.17 via Cocoapods, encounter following issue

ProcessPCH /Users/quanlong/Library/Developer/Xcode/DerivedData/Demo-felqyckxecgvljafwrmkeviltemv/Build/Intermediates/PrecompiledHeaders/Pods-leveldb-prefix-artksttrghbjpxapwsagufxkllkg/Pods-leveldb-prefix.pch.pch Pods-leveldb-prefix.pch normal arm64 objective-c com.apple.compilers.llvm.clang.1_0.compiler
    cd /Users/quanlong/projects/Demo/Pods
    export LANG=en_US.US-ASCII
    export PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin"
    /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -x objective-c-header -arch arm64 -fmessage-length=0 -fdiagnostics-show-note-include-stack -fmacro-backtrace-limit=0 -std=gnu99 -fmodules -fmodules-cache-path=/Users/quanlong/Library/Developer/Xcode/DerivedData/ModuleCache -Wno-trigraphs -fpascal-strings -O0 -Wno-missing-field-initializers -Wno-missing-prototypes -Wno-implicit-atomic-properties -Wno-receiver-is-weak -Wno-arc-repeated-use-of-weak -Wno-missing-braces -Wparentheses -Wswitch -Wunused-function -Wno-unused-label -Wno-unused-parameter -Wunused-variable -Wunused-value -Wempty-body -Wuninitialized -Wno-unknown-pragmas -Wno-shadow -Wno-four-char-constants -Wno-conversion -Wconstant-conversion -Wint-conversion -Wbool-conversion -Wenum-conversion -Wshorten-64-to-32 -Wpointer-sign -Wno-newline-eof -Wno-selector -Wno-strict-selector-match -Wundeclared-selector -Wno-deprecated-implementations -DDEBUG=1 -DCOCOAPODS=1 -DLEVELDB_PLATFORM_POSIX=1 -DOS_MACOSX=1 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS7.1.sdk -fstrict-aliasing -Wprotocol -Wdeprecated-declarations -g -Wno-sign-conversion -miphoneos-version-min=7.1 -iquote /Users/quanlong/Library/Developer/Xcode/DerivedData/Demo-felqyckxecgvljafwrmkeviltemv/Build/Intermediates/Pods.build/Debug-iphoneos/Pods-leveldb.build/Pods-leveldb-generated-files.hmap -I/Users/quanlong/Library/Developer/Xcode/DerivedData/Demo-felqyckxecgvljafwrmkeviltemv/Build/Intermediates/Pods.build/Debug-iphoneos/Pods-leveldb.build/Pods-leveldb-own-target-headers.hmap -I/Users/quanlong/Library/Developer/Xcode/DerivedData/Demo-felqyckxecgvljafwrmkeviltemv/Build/Intermediates/Pods.build/Debug-iphoneos/Pods-leveldb.build/Pods-leveldb-all-target-headers.hmap -iquote /Users/quanlong/Library/Developer/Xcode/DerivedData/Demo-felqyckxecgvljafwrmkeviltemv/Build/Intermediates/Pods.build/Debug-iphoneos/Pods-leveldb.build/Pods-leveldb-project-headers.hmap -I/Users/quanlong/Library/Developer/Xcode/DerivedData/Demo-felqyckxecgvljafwrmkeviltemv/Build/Products/Debug-iphoneos/include -I/Users/quanlong/projects/Demo/Pods/BuildHeaders -I/Users/quanlong/projects/Demo/Pods/BuildHeaders/leveldb -I/Users/quanlong/projects/Demo/Pods/Headers -I/Users/quanlong/projects/Demo/Pods/Headers/leveldb -I/Users/quanlong/projects/Demo/Pods/leveldb -I/Users/quanlong/Library/Developer/Xcode/DerivedData/Demo-felqyckxecgvljafwrmkeviltemv/Build/Intermediates/Pods.build/Debug-iphoneos/Pods-leveldb.build/DerivedSources/arm64 -I/Users/quanlong/Library/Developer/Xcode/DerivedData/Demo-felqyckxecgvljafwrmkeviltemv/Build/Intermediates/Pods.build/Debug-iphoneos/Pods-leveldb.build/DerivedSources -F/Users/quanlong/Library/Developer/Xcode/DerivedData/Demo-felqyckxecgvljafwrmkeviltemv/Build/Products/Debug-iphoneos --serialize-diagnostics /Users/quanlong/Library/Developer/Xcode/DerivedData/Demo-felqyckxecgvljafwrmkeviltemv/Build/Intermediates/PrecompiledHeaders/Pods-leveldb-prefix-artksttrghbjpxapwsagufxkllkg/Pods-leveldb-prefix.pch.dia -MMD -MT dependencies -MF /Users/quanlong/Library/Developer/Xcode/DerivedData/Demo-felqyckxecgvljafwrmkeviltemv/Build/Intermediates/PrecompiledHeaders/Pods-leveldb-prefix-artksttrghbjpxapwsagufxkllkg/Pods-leveldb-prefix.pch.d -c /Users/quanlong/projects/Demo/Pods/Pods-leveldb-prefix.pch -o /Users/quanlong/Library/Developer/Xcode/DerivedData/Demo-felqyckxecgvljafwrmkeviltemv/Build/Intermediates/PrecompiledHeaders/Pods-leveldb-prefix-artksttrghbjpxapwsagufxkllkg/Pods-leveldb-prefix.pch.pch

While building module 'UIKit' imported from /Users/quanlong/projects/Demo/Pods/Pods-leveldb-prefix.pch:2:
While building module 'Foundation' imported from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS7.1.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIAccelerometer.h:8:
While building module 'CoreFoundation' imported from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS7.1.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.h:6:
In file included from <module-includes>:1:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS7.1.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CoreFoundation.h:38:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS7.1.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CFBase.h:63:
In file included from /Users/quanlong/projects/Demo/Pods/leveldb/table/block.h:10:
In file included from /Users/quanlong/projects/Demo/Pods/BuildHeaders/leveldb/iterator.h:18:
/Users/quanlong/projects/Demo/Pods/BuildHeaders/leveldb/slice.h:21:10: fatal error: 'string' file not found
#include <string>
         ^
1 error generated.
While building module 'UIKit' imported from /Users/quanlong/projects/Demo/Pods/Pods-leveldb-prefix.pch:2:
While building module 'Foundation' imported from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS7.1.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIAccelerometer.h:8:
In file included from <module-includes>:1:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS7.1.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.h:6:10: fatal error: could not build module 'CoreFoundation'
#include <CoreFoundation/CoreFoundation.h>
 ~~~~~~~~^
While building module 'UIKit' imported from /Users/quanlong/projects/Demo/Pods/Pods-leveldb-prefix.pch:2:
While building module 'Foundation' imported from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS7.1.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIAccelerometer.h:8:
While building module 'Security' imported from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS7.1.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSURLCredential.h:9:
In file included from <module-includes>:1:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS7.1.sdk/System/Library/Frameworks/Security.framework/Headers/Security.h:25:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS7.1.sdk/System/Library/Frameworks/Security.framework/Headers/SecCertificate.h:38:10: fatal error: could not build module 'CoreFoundation'
#include <CoreFoundation/CFData.h>
 ~~~~~~~~^
1 error generated.
While building module 'UIKit' imported from /Users/quanlong/projects/Demo/Pods/Pods-leveldb-prefix.pch:2:
While building module 'Foundation' imported from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS7.1.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIAccelerometer.h:8:
While building module 'CFNetwork' imported from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS7.1.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSURLError.h:10:
In file included from <module-includes>:1:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS7.1.sdk/System/Library/Frameworks/CFNetwork.framework/Headers/CFNetwork.h:18:10: fatal error: could not build module 'CoreFoundation'
#include <CoreFoundation/CoreFoundation.h>
 ~~~~~~~~^
1 error generated.
4 errors generated.
While building module 'UIKit' imported from /Users/quanlong/projects/Demo/Pods/Pods-leveldb-prefix.pch:2:
In file included from <module-includes>:1:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS7.1.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIKit.h:9:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS7.1.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIAccelerometer.h:8:9: fatal error: could not build module 'Foundation'
#import <Foundation/Foundation.h>
 ~~~~~~~^
While building module 'UIKit' imported from /Users/quanlong/projects/Demo/Pods/Pods-leveldb-prefix.pch:2:
While building module 'CoreGraphics' imported from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS7.1.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIAccessibility.h:8:
In file included from <module-includes>:1:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS7.1.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CoreGraphics.h:10:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS7.1.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CGAffineTransform.h:11:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS7.1.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CGGeometry.h:9:10: fatal error: could not build module 'CoreFoundation'
#include <CoreFoundation/CFDictionary.h>
 ~~~~~~~~^
1 error generated.
While building module 'UIKit' imported from /Users/quanlong/projects/Demo/Pods/Pods-leveldb-prefix.pch:2:
While building module 'CoreImage' imported from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS7.1.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIColor.h:10:
In file included from <module-includes>:1:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS7.1.sdk/System/Library/Frameworks/CoreImage.framework/Headers/CoreImage.h:8:9: fatal error: could not build module 'Foundation'
#import <Foundation/Foundation.h>
 ~~~~~~~^
While building module 'UIKit' imported from /Users/quanlong/projects/Demo/Pods/Pods-leveldb-prefix.pch:2:
While building module 'CoreImage' imported from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS7.1.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIColor.h:10:
While building module 'CoreVideo' imported from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS7.1.sdk/System/Library/Frameworks/CoreImage.framework/Headers/CIImage.h:8:
In file included from <module-includes>:1:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS7.1.sdk/System/Library/Frameworks/CoreVideo.framework/Headers/CoreVideo.h:20:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS7.1.sdk/System/Library/Frameworks/CoreVideo.framework/Headers/CVReturn.h:21:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS7.1.sdk/System/Library/Frameworks/CoreVideo.framework/Headers/CVBase.h:43:10: fatal error: could not build module 'CoreFoundation'
#include <CoreFoundation/CFBase.h>
 ~~~~~~~~^
While building module 'UIKit' imported from /Users/quanlong/projects/Demo/Pods/Pods-leveldb-prefix.pch:2:
While building module 'CoreImage' imported from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS7.1.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIColor.h:10:
While building module 'CoreVideo' imported from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS7.1.sdk/System/Library/Frameworks/CoreImage.framework/Headers/CIImage.h:8:
While building module 'OpenGLES' imported from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS7.1.sdk/System/Library/Frameworks/CoreVideo.framework/Headers/CVOpenGLESTexture.h:23:
In file included from <module-includes>:1:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS7.1.sdk/System/Library/Frameworks/OpenGLES.framework/Headers/EAGL.h:8:10: fatal error: could not build module 'Foundation'
#include <Foundation/Foundation.h>
 ~~~~~~~~^
1 error generated.
2 errors generated.
3 errors generated.
While building module 'UIKit' imported from /Users/quanlong/projects/Demo/Pods/Pods-leveldb-prefix.pch:2:
While building module 'CoreText' imported from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS7.1.sdk/System/Library/Frameworks/UIKit.framework/Headers/NSText.h:9:
In file included from <module-includes>:1:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS7.1.sdk/System/Library/Frameworks/CoreText.framework/Headers/CoreText.h:21:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS7.1.sdk/System/Library/Frameworks/CoreText.framework/Headers/CTFont.h:21:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS7.1.sdk/System/Library/Frameworks/CoreText.framework/Headers/CTFontDescriptor.h:21:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS7.1.sdk/System/Library/Frameworks/CoreText.framework/Headers/CTFontTraits.h:13:10: fatal error: could not build module 'CoreFoundation'
#include <CoreFoundation/CFNumber.h>
 ~~~~~~~~^
1 error generated.
While building module 'UIKit' imported from /Users/quanlong/projects/Demo/Pods/Pods-leveldb-prefix.pch:2:
While building module 'QuartzCore' imported from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS7.1.sdk/System/Library/Frameworks/UIKit.framework/Headers/UICollectionViewLayout.h:11:
In file included from <module-includes>:1:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS7.1.sdk/System/Library/Frameworks/QuartzCore.framework/Headers/CAAnimation.h:6:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS7.1.sdk/System/Library/Frameworks/QuartzCore.framework/Headers/CALayer.h:6:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS7.1.sdk/System/Library/Frameworks/QuartzCore.framework/Headers/CAMediaTiming.h:6:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS7.1.sdk/System/Library/Frameworks/QuartzCore.framework/Headers/CABase.h:16:10: fatal error: could not build module 'CoreFoundation'
#include <CoreFoundation/CoreFoundation.h>
 ~~~~~~~~^
1 error generated.
11 errors generated.
/Users/quanlong/projects/Demo/Pods/Pods-leveldb-prefix.pch:2:9: fatal error: could not build module 'UIKit'
#import <UIKit/UIKit.h>
 ~~~~~~~^
12 errors generated.
cybertk commented 10 years ago

Fixed by e98c279