building a static llibrary project that uses j2OjbC generated code

1,286 views
Skip to first unread message

venu...@gmail.com

unread,
Feb 13, 2015, 7:49:58 AM2/13/15
to j2objc-...@googlegroups.com
Hello,
I'm having some trouble building a static llibrary project that uses j2OjbC generated code.

I'm able to compile the library with IOS Deployment Target: IOS 6.0,when i change to
IOS Deployment Target: IOS 7.0,it compile failed with following errors:

---------------------------------------
ProcessPCH /Users/Library/Developer/Xcode/DerivedData/my_sdk-objc-abevoqaiavdcgsgrxfmsejuhrchc/Build/Intermediates/PrecompiledHeaders/my_sdk-objc-Prefix-fpmuvskpapzpvgeecitnniuhrebj/my_sdk-objc-Prefix.pch.pch my_sdk_objc/my_sdk-objc-Prefix.pch normal i386 objective-c com.apple.compilers.llvm.clang.1_0.compiler
cd /Users/workspace/my_sdk-objc-workspace/TestSDK/my_sdk_objc
export LANG=en_US.US-ASCII
export PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.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 i386 -fmessage-length=0 -fdiagnostics-show-note-include-stack -fmacro-backtrace-limit=0 -std=gnu99 -fmodules -fmodules-cache-path=/Users/Library/Developer/Xcode/DerivedData/ModuleCache -fmodules-prune-interval=86400 -fmodules-prune-after=345600 -Wnon-modular-include-in-framework-module -Werror=non-modular-include-in-framework-module -Wno-trigraphs -fpascal-strings -O0 -Wno-missing-field-initializers -Wno-missing-prototypes -Werror=return-type -Wno-implicit-atomic-properties -Werror=deprecated-objc-isa-usage -Werror=objc-root-class -Wno-receiver-is-weak -Wno-arc-repeated-use-of-weak -Wduplicate-method-match -Wno-missing-braces -Wparentheses -Wswitch -Wunused-function -Wno-unused-label -Wno-unused-parameter -Wunused-variable -Wunused-value -Wempty-body -Wconditional-uninitialized -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 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.1.sdk -fexceptions -fasm-blocks -fstrict-aliasing -Wprotocol -Wdeprecated-declarations -g -Wno-sign-conversion -fobjc-abi-version=2 -fobjc-legacy-dispatch -mios-simulator-version-min=6.1 -iquote /Users/Library/Developer/Xcode/DerivedData/my_sdk-objc-abevoqaiavdcgsgrxfmsejuhrchc/Build/Intermediates/my_sdk_objc.build/Debug-iphonesimulator/my_sdk_objc.build/my_sdk-objc-generated-files.hmap -I/Users/Library/Developer/Xcode/DerivedData/my_sdk-objc-abevoqaiavdcgsgrxfmsejuhrchc/Build/Intermediates/my_sdk_objc.build/Debug-iphonesimulator/my_sdk_objc.build/my_sdk-objc-own-target-headers.hmap -I/Users/Library/Developer/Xcode/DerivedData/my_sdk-objc-abevoqaiavdcgsgrxfmsejuhrchc/Build/Intermediates/my_sdk_objc.build/Debug-iphonesimulator/my_sdk_objc.build/my_sdk-objc-all-target-headers.hmap -iquote /Users/Library/Developer/Xcode/DerivedData/my_sdk-objc-abevoqaiavdcgsgrxfmsejuhrchc/Build/Intermediates/my_sdk_objc.build/Debug-iphonesimulator/my_sdk_objc.build/my_sdk-objc-project-headers.hmap -I/Users/Library/Developer/Xcode/DerivedData/my_sdk-objc-abevoqaiavdcgsgrxfmsejuhrchc/Build/Products/Debug-iphonesimulator/include -I/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include -Imy_sdk_objc/sdk -Imy_sdk_objc/sdk/constant -Imy_sdk_objc/sdk/data -Imy_sdk_objc/sdk/exception -Imy_sdk_objc/sdk/service -Imy_sdk_objc/sdk/util -Imy_sdk_objc/sdk/data/entity -Imy_sdk_objc/sdk/data/handler -Imy_sdk_objc/sdk/data/response -Imy_sdk_objc/ThirdParty -Imy_sdk_objc/ThirdParty/communication -Imy_sdk_objc/ThirdParty/DDGPreferences -Imy_sdk_objc/ThirdParty/j2objc -Imy_sdk_objc/ThirdParty/libqrencode -Imy_sdk_objc/ThirdParty/ZBarSDK -Imy_sdk_objc/ThirdParty/communication/ASIWebPageRequest -Imy_sdk_objc/ThirdParty/communication/CloudFiles -Imy_sdk_objc/ThirdParty/communication/Reachability -Imy_sdk_objc/ThirdParty/communication/S3 -Imy_sdk_objc/ThirdParty/j2objc/include -Imy_sdk_objc/ThirdParty/ZBarSDK/Headers -Imy_sdk_objc/ThirdParty/j2objc/include/android -Imy_sdk_objc/ThirdParty/j2objc/include/com -Imy_sdk_objc/ThirdParty/j2objc/include/dalvik -Imy_sdk_objc/ThirdParty/j2objc/include/java -Imy_sdk_objc/ThirdParty/j2objc/include/javax -Imy_sdk_objc/ThirdParty/j2objc/include/junit -Imy_sdk_objc/ThirdParty/j2objc/include/libcore -Imy_sdk_objc/ThirdParty/j2objc/include/org -Imy_sdk_objc/ThirdParty/j2objc/include/sun -Imy_sdk_objc/ThirdParty/ZBarSDK/Headers/ZBarSDK -Imy_sdk_objc/ThirdParty/j2objc/include/android/os -Imy_sdk_objc/ThirdParty/j2objc/include/android/test -Imy_sdk_objc/ThirdParty/j2objc/include/android/text -Imy_sdk_objc/ThirdParty/j2objc/include/android/util -Imy_sdk_objc/ThirdParty/j2objc/include/com/android -Imy_sdk_objc/ThirdParty/j2objc/include/com/google -Imy_sdk_objc/ThirdParty/j2objc/include/dalvik/system -Imy_sdk_objc/ThirdParty/j2objc/include/java/beans -Imy_sdk_objc/ThirdParty/j2objc/include/java/io -Imy_sdk_objc/ThirdParty/j2objc/include/java/lang -Imy_sdk_objc/ThirdParty/j2objc/include/java/math -Imy_sdk_objc/ThirdParty/j2objc/include/java/net -Imy_sdk_objc/ThirdParty/j2objc/include/java/nio -Imy_sdk_objc/ThirdParty/j2objc/include/java/security -Imy_sdk_objc/ThirdParty/j2objc/include/java/sql -Imy_sdk_objc/ThirdParty/j2objc/include/java/text -Imy_sdk_objc/ThirdParty/j2objc/include/java/util -Imy_sdk_objc/ThirdParty/j2objc/include/javax/annotation -Imy_sdk_objc/ThirdParty/j2objc/include/javax/inject -Imy_sdk_objc/ThirdParty/j2objc/include/javax/lang -Imy_sdk_objc/ThirdParty/j2objc/include/javax/security -Imy_sdk_objc/ThirdParty/j2objc/include/javax/xml -Imy_sdk_objc/ThirdParty/j2objc/include/junit/extensions -Imy_sdk_objc/ThirdParty/j2objc/include/junit/framework -Imy_sdk_objc/ThirdParty/j2objc/include/junit/runner -Imy_sdk_objc/ThirdParty/j2objc/include/junit/textui -Imy_sdk_objc/ThirdParty/j2objc/include/libcore/icu -Imy_sdk_objc/ThirdParty/j2objc/include/libcore/internal -Imy_sdk_objc/ThirdParty/j2objc/include/libcore/io -Imy_sdk_objc/ThirdParty/j2objc/include/libcore/net -Imy_sdk_objc/ThirdParty/j2objc/include/libcore/util -Imy_sdk_objc/ThirdParty/j2objc/include/org/apache -Imy_sdk_objc/ThirdParty/j2objc/include/org/hamcrest -Imy_sdk_objc/ThirdParty/j2objc/include/org/json -Imy_sdk_objc/ThirdParty/j2objc/include/org/junit -Imy_sdk_objc/ThirdParty/j2objc/include/org/kxml2 -Imy_sdk_objc/ThirdParty/j2objc/include/org/mockito -Imy_sdk_objc/ThirdParty/j2objc/include/org/w3c -Imy_sdk_objc/ThirdParty/j2objc/include/org/xml -Imy_sdk_objc/ThirdParty/j2objc/include/org/xmlpull -Imy_sdk_objc/ThirdParty/j2objc/include/sun/misc -Imy_sdk_objc/ThirdParty/ZBarSDK/Headers/ZBarSDK/zbar -Imy_sdk_objc/ThirdParty/j2objc/include/android/test/suitebuilder -Imy_sdk_objc/ThirdParty/j2objc/include/android/text/util -Imy_sdk_objc/ThirdParty/j2objc/include/com/android/internal -Imy_sdk_objc/ThirdParty/j2objc/include/com/google/android -Imy_sdk_objc/ThirdParty/j2objc/include/com/google/common -Imy_sdk_objc/ThirdParty/j2objc/include/com/google/j2objc -Imy_sdk_objc/ThirdParty/j2objc/include/java/lang/annotation -Imy_sdk_objc/ThirdParty/j2objc/include/java/lang/ref -Imy_sdk_objc/ThirdParty/j2objc/include/java/lang/reflect -Imy_sdk_objc/ThirdParty/j2objc/include/java/nio/channels -Imy_sdk_objc/ThirdParty/j2objc/include/java/nio/charset -Imy_sdk_objc/ThirdParty/j2objc/include/java/security/cert -Imy_sdk_objc/ThirdParty/j2objc/include/java/util/concurrent -Imy_sdk_objc/ThirdParty/j2objc/include/java/util/logging -Imy_sdk_objc/ThirdParty/j2objc/include/java/util/regex -Imy_sdk_objc/ThirdParty/j2objc/include/java/util/zip -Imy_sdk_objc/ThirdParty/j2objc/include/javax/annotation/concurrent -Imy_sdk_objc/ThirdParty/j2objc/include/javax/annotation/meta -Imy_sdk_objc/ThirdParty/j2objc/include/javax/lang/model -Imy_sdk_objc/ThirdParty/j2objc/include/javax/security/auth -Imy_sdk_objc/ThirdParty/j2objc/include/javax/security/cert -Imy_sdk_objc/ThirdParty/j2objc/include/javax/xml/parsers -Imy_sdk_objc/ThirdParty/j2objc/include/javax/xml/transform -Imy_sdk_objc/ThirdParty/j2objc/include/javax/xml/validation -Imy_sdk_objc/ThirdParty/j2objc/include/libcore/net/http -Imy_sdk_objc/ThirdParty/j2objc/include/libcore/net/url -Imy_sdk_objc/ThirdParty/j2objc/include/org/apache/harmony -Imy_sdk_objc/ThirdParty/j2objc/include/org/hamcrest/core -Imy_sdk_objc/ThirdParty/j2objc/include/org/junit/internal -Imy_sdk_objc/ThirdParty/j2objc/include/org/junit/rules -Imy_sdk_objc/ThirdParty/j2objc/include/org/junit/runner -Imy_sdk_objc/ThirdParty/j2objc/include/org/junit/runners -Imy_sdk_objc/ThirdParty/j2objc/include/org/kxml2/io -Imy_sdk_objc/ThirdParty/j2objc/include/org/mockito/configuration -Imy_sdk_objc/ThirdParty/j2objc/include/org/mockito/exceptions -Imy_sdk_objc/ThirdParty/j2objc/include/org/mockito/internal -Imy_sdk_objc/ThirdParty/j2objc/include/org/mockito/invocation -Imy_sdk_objc/ThirdParty/j2objc/include/org/mockito/listeners -Imy_sdk_objc/ThirdParty/j2objc/include/org/mockito/mock -Imy_sdk_objc/ThirdParty/j2objc/include/org/mockito/plugins -Imy_sdk_objc/ThirdParty/j2objc/include/org/mockito/runners -Imy_sdk_objc/ThirdParty/j2objc/include/org/mockito/stubbing -Imy_sdk_objc/ThirdParty/j2objc/include/org/mockito/verification -Imy_sdk_objc/ThirdParty/j2objc/include/org/w3c/dom -Imy_sdk_objc/ThirdParty/j2objc/include/org/xml/sax -Imy_sdk_objc/ThirdParty/j2objc/include/org/xmlpull/v1 -Imy_sdk_objc/ThirdParty/j2objc/include/android/test/suitebuilder/annotation -Imy_sdk_objc/ThirdParty/j2objc/include/com/android/internal/util -Imy_sdk_objc/ThirdParty/j2objc/include/com/google/android/collect -Imy_sdk_objc/ThirdParty/j2objc/include/com/google/common/annotations -Imy_sdk_objc/ThirdParty/j2objc/include/com/google/common/base -Imy_sdk_objc/ThirdParty/j2objc/include/com/google/common/cache -Imy_sdk_objc/ThirdParty/j2objc/include/com/google/common/collect -Imy_sdk_objc/ThirdParty/j2objc/include/com/google/common/eventbus -Imy_sdk_objc/ThirdParty/j2objc/include/com/google/common/hash -Imy_sdk_objc/ThirdParty/j2objc/include/com/google/common/io -Imy_sdk_objc/ThirdParty/j2objc/include/com/google/common/math -Imy_sdk_objc/ThirdParty/j2objc/include/com/google/common/net -Imy_sdk_objc/ThirdParty/j2objc/include/com/google/common/primitives -Imy_sdk_objc/ThirdParty/j2objc/include/com/google/common/reflect -Imy_sdk_objc/ThirdParty/j2objc/include/com/google/common/util -Imy_sdk_objc/ThirdParty/j2objc/include/com/google/j2objc/net -Imy_sdk_objc/ThirdParty/j2objc/include/com/google/j2objc/security -Imy_sdk_objc/ThirdParty/j2objc/include/com/google/j2objc/util -Imy_sdk_objc/ThirdParty/j2objc/include/java/nio/channels/spi -Imy_sdk_objc/ThirdParty/j2objc/include/java/util/concurrent/atomic -Imy_sdk_objc/ThirdParty/j2objc/include/java/util/concurrent/locks -Imy_sdk_objc/ThirdParty/j2objc/include/javax/lang/model/element -Imy_sdk_objc/ThirdParty/j2objc/include/javax/security/auth/x500 -Imy_sdk_objc/ThirdParty/j2objc/include/org/apache/harmony/security -Imy_sdk_objc/ThirdParty/j2objc/include/org/apache/harmony/xml -Imy_sdk_objc/ThirdParty/j2objc/include/org/junit/internal/runners -Imy_sdk_objc/ThirdParty/j2objc/include/org/junit/runner/manipulation -Imy_sdk_objc/ThirdParty/j2objc/include/org/junit/runner/notification -Imy_sdk_objc/ThirdParty/j2objc/include/org/junit/runners/model -Imy_sdk_objc/ThirdParty/j2objc/include/org/mockito/exceptions/base -Imy_sdk_objc/ThirdParty/j2objc/include/org/mockito/exceptions/misusing -Imy_sdk_objc/ThirdParty/j2objc/include/org/mockito/exceptions/stacktrace -Imy_sdk_objc/ThirdParty/j2objc/include/org/mockito/exceptions/verification -Imy_sdk_objc/ThirdParty/j2objc/include/org/mockito/internal/configuration -Imy_sdk_objc/ThirdParty/j2objc/include/org/mockito/internal/creation -Imy_sdk_objc/ThirdParty/j2objc/include/org/mockito/internal/debugging -Imy_sdk_objc/ThirdParty/j2objc/include/org/mockito/internal/exceptions -Imy_sdk_objc/ThirdParty/j2objc/include/org/mockito/internal/handler -Imy_sdk_objc/ThirdParty/j2objc/include/org/mockito/internal/invocation -Imy_sdk_objc/ThirdParty/j2objc/include/org/mockito/internal/junit -Imy_sdk_objc/ThirdParty/j2objc/include/org/mockito/internal/listeners -Imy_sdk_objc/ThirdParty/j2objc/include/org/mockito/internal/matchers -Imy_sdk_objc/ThirdParty/j2objc/include/org/mockito/internal/progress -Imy_sdk_objc/ThirdParty/j2objc/include/org/mockito/internal/reporting -Imy_sdk_objc/ThirdParty/j2objc/include/org/mockito/internal/runners -Imy_sdk_objc/ThirdParty/j2objc/include/org/mockito/internal/stubbing -Imy_sdk_objc/ThirdParty/j2objc/include/org/mockito/internal/util -Imy_sdk_objc/ThirdParty/j2objc/include/org/mockito/internal/verification -Imy_sdk_objc/ThirdParty/j2objc/include/org/w3c/dom/ls -Imy_sdk_objc/ThirdParty/j2objc/include/org/xml/sax/ext -Imy_sdk_objc/ThirdParty/j2objc/include/org/xml/sax/helpers -Imy_sdk_objc/ThirdParty/j2objc/include/org/xmlpull/v1/sax2 -Imy_sdk_objc/ThirdParty/j2objc/include/com/google/common/util/concurrent -Imy_sdk_objc/ThirdParty/j2objc/include/com/google/j2objc/security/cert -Imy_sdk_objc/ThirdParty/j2objc/include/org/apache/harmony/security/asn1 -Imy_sdk_objc/ThirdParty/j2objc/include/org/apache/harmony/security/fortress -Imy_sdk_objc/ThirdParty/j2objc/include/org/apache/harmony/security/utils -Imy_sdk_objc/ThirdParty/j2objc/include/org/apache/harmony/security/x501 -Imy_sdk_objc/ThirdParty/j2objc/include/org/apache/harmony/security/x509 -Imy_sdk_objc/ThirdParty/j2objc/include/org/apache/harmony/xml/parsers -Imy_sdk_objc/ThirdParty/j2objc/include/org/junit/internal/runners/model -Imy_sdk_objc/ThirdParty/j2objc/include/org/mockito/internal/configuration/injection -Imy_sdk_objc/ThirdParty/j2objc/include/org/mockito/internal/creation/ios -Imy_sdk_objc/ThirdParty/j2objc/include/org/mockito/internal/creation/jmock -Imy_sdk_objc/ThirdParty/j2objc/include/org/mockito/internal/creation/settings -Imy_sdk_objc/ThirdParty/j2objc/include/org/mockito/internal/exceptions/stacktrace -Imy_sdk_objc/ThirdParty/j2objc/include/org/mockito/internal/exceptions/util -Imy_sdk_objc/ThirdParty/j2objc/include/org/mockito/internal/invocation/finder -Imy_sdk_objc/ThirdParty/j2objc/include/org/mockito/internal/invocation/realmethod -Imy_sdk_objc/ThirdParty/j2objc/include/org/mockito/internal/matchers/apachecommons -Imy_sdk_objc/ThirdParty/j2objc/include/org/mockito/internal/runners/util -Imy_sdk_objc/ThirdParty/j2objc/include/org/mockito/internal/stubbing/answers -Imy_sdk_objc/ThirdParty/j2objc/include/org/mockito/internal/stubbing/defaultanswers -Imy_sdk_objc/ThirdParty/j2objc/include/org/mockito/internal/util/collections -Imy_sdk_objc/ThirdParty/j2objc/include/org/mockito/internal/util/reflection -Imy_sdk_objc/ThirdParty/j2objc/include/org/mockito/internal/verification/api -Imy_sdk_objc/ThirdParty/j2objc/include/org/mockito/internal/verification/argumentmatching -Imy_sdk_objc/ThirdParty/j2objc/include/org/mockito/internal/verification/checkers -Imy_sdk_objc/ThirdParty/j2objc/include/org/mockito/internal/configuration/injection/filter -Imy_sdk_objc/ThirdParty/j2objc/include/org/mockito/internal/configuration/injection/scanner -I/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.1.sdk/usr/include/libxml2 -I/Users/Library/Developer/Xcode/DerivedData/my_sdk-objc-abevoqaiavdcgsgrxfmsejuhrchc/Build/Intermediates/my_sdk_objc.build/Debug-iphonesimulator/my_sdk_objc.build/DerivedSources/i386 -I/Users/Library/Developer/Xcode/DerivedData/my_sdk-objc-abevoqaiavdcgsgrxfmsejuhrchc/Build/Intermediates/my_sdk_objc.build/Debug-iphonesimulator/my_sdk_objc.build/DerivedSources -F/Users/Library/Developer/Xcode/DerivedData/my_sdk-objc-abevoqaiavdcgsgrxfmsejuhrchc/Build/Products/Debug-iphonesimulator -MD -MT dependencies -MF /Users/Library/Developer/Xcode/DerivedData/my_sdk-objc-abevoqaiavdcgsgrxfmsejuhrchc/Build/Intermediates/PrecompiledHeaders/my_sdk-objc-Prefix-fpmuvskpapzpvgeecitnniuhrebj/my_sdk-objc-Prefix.pch.d -c /Users/workspace/my_sdk-objc-workspace/TestSDK/my_sdk_objc/my_sdk_objc/my_sdk-objc-Prefix.pch -o /Users/Library/Developer/Xcode/DerivedData/my_sdk-objc-abevoqaiavdcgsgrxfmsejuhrchc/Build/Intermediates/PrecompiledHeaders/my_sdk-objc-Prefix-fpmuvskpapzpvgeecitnniuhrebj/my_sdk-objc-Prefix.pch.pch --serialize-diagnostics /Users/Library/Developer/Xcode/DerivedData/my_sdk-objc-abevoqaiavdcgsgrxfmsejuhrchc/Build/Intermediates/PrecompiledHeaders/my_sdk-objc-Prefix-fpmuvskpapzpvgeecitnniuhrebj/my_sdk-objc-Prefix.pch.dia

While building module 'Foundation' imported from /Users/workspace/my_sdk-objc-workspace/TestSDK/my_sdk_objc/my_sdk_objc/my_sdk-objc-Prefix.pch:8:
While building module 'CoreFoundation' imported from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.1.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.h:6:
While building module 'Darwin' imported from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.1.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CoreFoundation.h:11:
In file included from <module-includes>:27:
In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/clang/6.0/include/tgmath.h:29:
In file included from my_sdk_objc/ThirdParty/j2objc/include/java/lang/math.h:11:
In file included from my_sdk_objc/ThirdParty/j2objc/include/JreEmulation.h:28:
my_sdk_objc/ThirdParty/j2objc/include/J2ObjC_common.h:18:9: fatal error: cyclic dependency in module 'Foundation': Foundation -> CoreFoundation -> Darwin -> Foundation
#import <Foundation/Foundation.h>
^
While building module 'Foundation' imported from /Users/workspace/my_sdk-objc-workspace/TestSDK/my_sdk_objc/my_sdk_objc/my_sdk-objc-Prefix.pch:8:
While building module 'CoreFoundation' imported from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.1.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.h:6:
While building module 'Darwin' imported from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.1.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CoreFoundation.h:11:
While building module 'ObjectiveC' imported from my_sdk_objc/ThirdParty/j2objc/include/IOSReflection.h:24:
In file included from <module-includes>:2:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.1.sdk/usr/include/objc/message.h:29:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.1.sdk/usr/include/objc/objc.h:31:10: fatal error: cyclic dependency in module 'Darwin': Darwin -> ObjectiveC -> Darwin
#include <sys/types.h> // for __DARWIN_NULL
^
While building module 'Foundation' imported from /Users/workspace/my_sdk-objc-workspace/TestSDK/my_sdk_objc/my_sdk_objc/my_sdk-objc-Prefix.pch:8:
While building module 'CoreFoundation' imported from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.1.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.h:6:
While building module 'Darwin' imported from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.1.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CoreFoundation.h:11:
While building module 'ObjectiveC' imported from my_sdk_objc/ThirdParty/j2objc/include/IOSReflection.h:24:
While building module 'MachO' imported from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.1.sdk/usr/include/objc/objc-load.h:33:
In file included from <module-includes>:1:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.1.sdk/usr/include/mach-o/arch.h:32:10: fatal error: cyclic dependency in module 'Darwin': Darwin -> ObjectiveC -> MachO -> Darwin
#include <stdint.h>
^
1 error generated.
2 errors generated.
3 errors generated.
While building module 'Foundation' imported from /Users/workspace/my_sdk-objc-workspace/TestSDK/my_sdk_objc/my_sdk_objc/my_sdk-objc-Prefix.pch:8:
While building module 'CoreFoundation' imported from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.1.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.h:6:
In file included from <module-includes>:1:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.1.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CoreFoundation.h:11:10: fatal error: could not build module 'Darwin'
#include <sys/types.h>
~~~~~~~~^
4 errors generated.
While building module 'Foundation' imported from /Users/workspace/my_sdk-objc-workspace/TestSDK/my_sdk_objc/my_sdk_objc/my_sdk-objc-Prefix.pch:8:
In file included from <module-includes>:1:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.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 'Foundation' imported from /Users/workspace/my_sdk-objc-workspace/TestSDK/my_sdk_objc/my_sdk_objc/my_sdk-objc-Prefix.pch:8:
While building module 'Dispatch' imported from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.1.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSDateIntervalFormatter.h:6:
In file included from <module-includes>:1:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.1.sdk/usr/include/dispatch/dispatch.h:25:10: fatal error: could not build module 'Darwin'
#include <Availability.h>
~~~~~~~~^
While building module 'Foundation' imported from /Users/workspace/my_sdk-objc-workspace/TestSDK/my_sdk_objc/my_sdk_objc/my_sdk-objc-Prefix.pch:8:
While building module 'Dispatch' imported from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.1.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSDateIntervalFormatter.h:6:
While building module 'os' imported from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.1.sdk/usr/include/dispatch/dispatch.h:48:
In file included from <module-includes>:1:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.1.sdk/usr/include/os/base.h:24:10: fatal error: could not build module 'Darwin'
#include <sys/cdefs.h>
~~~~~~~~^
1 error generated.
2 errors generated.
While building module 'Foundation' imported from /Users/workspace/my_sdk-objc-workspace/TestSDK/my_sdk_objc/my_sdk_objc/my_sdk-objc-Prefix.pch:8:
While building module 'Security' imported from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.1.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSURLSession.h:9:
In file included from <module-includes>:1:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.1.sdk/System/Library/Frameworks/Security.framework/Headers/Security.h:24:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.1.sdk/System/Library/Frameworks/Security.framework/Headers/SecBase.h:32:10: fatal error: could not build module 'Darwin'
#include <Availability.h>
~~~~~~~~^
1 error generated.
8 errors generated.
/Users/workspace/my_sdk-objc-workspace/TestSDK/my_sdk_objc/my_sdk_objc/my_sdk-objc-Prefix.pch:8:13: fatal error: could not build module 'Foundation'
#import <Foundation/Foundation.h>
~~~~~~~^
9 errors generated.


Any help or guidance greatly appreciated,

Regards,

Lee.

Tom Ball

unread,
Feb 13, 2015, 10:03:02 AM2/13/15
to j2objc-...@googlegroups.com
When searching for "could not build module 'darwin'" or "fatal error: cyclic dependency in module 'Darwin': Darwin -> ObjectiveC -> MachO -> Darwin", I found several developers on other projects having similar troubles, unrelated to j2objc. Most of the "fixes" appear to be poking the Xcode build target until it works, unfortunately, because the same project builds on most other systems.

Some suggestions from other developers include:
  • Change all the architectures build settings to "Standard (including 64 bit)",
  • This answer says to turn off "Enable Modules",
  • Delete the ~/Library/Developer/Xcode/DerivedData directory,
  • Remove and reinstall Xcode (desperate, but helped a few).
If this Xcode configuration bug bites anyone else, please post if you come up with another "blind poke" that worked for your system.

--
You received this message because you are subscribed to the Google Groups "j2objc-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to j2objc-discuss+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Tom Ball

unread,
Feb 13, 2015, 5:29:23 PM2/13/15
to j2objc-...@googlegroups.com
I found another problem: iOS 8.x added float.h, which conflicts with j2objc's java/lang/Float.h since Mac file systems aren't case-sensitive by default. The solution is to update the target's build settings, moving any Header Search Path entries to User Header Search Paths, and changing Always Search User Paths to NO. Here's the help text explaining why this is a good idea:

"If enabled both #include <header.h>-style and #include "header.h"-style directives will search the paths in "User Header Search Paths" before "Header Search Paths", with the consequence that user headers (such as your own String.h header) would have precedence over system headers when using #include <header.h>. This is done using the -iquote flag for the paths provided in "User Header Search Paths". If disabled and your compiler fully supports separate user paths, user headers will only be accessible with #include "header.h"-style preprocessor directives. 

For backwards compatibility reasons, this setting is enabled by default, but disabling it is strongly recommended."

Daniel Zlotin

unread,
Feb 15, 2015, 5:32:10 AM2/15/15
to j2objc-...@googlegroups.com, venu...@gmail.com
Don't ask me why this works or how I found it but once in a while after importing my static library of common j2objc code into the iOS project I get this kinds of errors and can't build.

The solution I found is (weirdly): In Header Search Paths in project Build Settings: choose (non-recursive) for all libs, then build, then choose (recursive) for the libs necessary. 

venu...@gmail.com

unread,
Feb 16, 2015, 9:49:26 PM2/16/15
to j2objc-...@googlegroups.com
在 2015年2月13日星期五 UTC+8下午11:03:02,Tom Ball写道:
> When searching for "could not build module 'darwin'" or "fatal error: cyclic dependency in module 'Darwin': Darwin -> ObjectiveC -> MachO -> Darwin", I found several developers on other projects having similar troubles, unrelated to j2objc. Most of the "fixes" appear to be poking the Xcode build target until it works, unfortunately, because the same project builds on most other systems.
>
>
> Some suggestions from other developers include:
> Change all the architectures build settings to "Standard (including 64 bit)",This answer says to turn off "Enable Modules",Delete the ~/Library/Developer/Xcode/DerivedData directory,Remove and reinstall Xcode (desperate, but helped a few).
> To unsubscribe from this group and stop receiving emails from it, send an email to j2objc-discus...@googlegroups.com.
>
> For more options, visit https://groups.google.com/d/optout.

thanks a lot.

venu...@gmail.com

unread,
Feb 16, 2015, 9:51:31 PM2/16/15
to j2objc-...@googlegroups.com, venu...@gmail.com
在 2015年2月15日星期日 UTC+8下午6:32:10,Daniel Zlotin写道:
> Don't ask me why this works or how I found it but once in a while after importing my static library of common j2objc code into the iOS project I get this kinds of errors and can't build.
>
>
> The solution I found is (weirdly): In Header Search Paths in project Build Settings: choose (non-recursive) for all libs, then build, then choose (recursive) for the libs necessary. 

yes ,it works. I found that head files of j2objc can't use recursive way In Header Search Paths in project Build Settings.

adam...@gmail.com

unread,
Jan 7, 2017, 6:14:48 AM1/7/17
to j2objc-discuss, venu...@gmail.com
This thread was helpful for me - I was just running into an odd issue where everything compiled fine for the simulator, but gave a "Cyclic dependency in module 'Foundation' -> CoreFoundation -> Darwin -> Foundation".

To solve it, I moved my `Header Search Paths` settings to `User Header Search Paths`. I also switched both flags to non-recursive in the process. That seemed to do the trick.

Message has been deleted

sajjad...@gmail.com

unread,
Jan 7, 2018, 4:38:12 AM1/7/18
to j2objc-discuss
On Saturday, January 7, 2017 at 2:44:48 PM UTC+3:30, adam...@gmail.com wrote:
> This thread was helpful for me - I was just running into an odd issue where everything compiled fine for the simulator, but gave a "Cyclic dependency in module 'Foundation' -> CoreFoundation -> Darwin -> Foundation".
>
> To solve it, I moved my `Header Search Paths` settings to `User Header Search Paths`. I also switched both flags to non-recursive in the process. That seemed to do the trick.

OOOOOH MAN THANKS ... THANKS A LOT
you save my time also my life ...
if you were near me i will hug you many times ...
BUT : i did not change recursive ... i just move to User Header Search Paths and let it to be recursive because many of translated java libraries need to be find for compiling my java files ... so i set to recursive and it's working fine ...
this is the only way i think !!!!
thank you again ...

Reply all
Reply to author
Forward
0 new messages