Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to build on Mavericks #1

Open
kgrigsby59 opened this issue Nov 10, 2013 · 7 comments
Open

Unable to build on Mavericks #1

kgrigsby59 opened this issue Nov 10, 2013 · 7 comments

Comments

@kgrigsby59
Copy link

I'm running Xcode 5.0.1 on the latest Mavericks.

When doing a pod install I got the following:

kengrigsbysimac:MC2CocoaPodsSample-master kgrigsby$ pod install
Analyzing dependencies
Downloading dependencies
Installing FXKeychain (1.4)
Installing GTMHTTPFetcher (0.0.1)
Installing MailCore2 (0.3.pre1)
Installing SBJson (3.2)
Installing ctemplate (2.2.1)
Installing gtm-oauth2 (0.0.2)
Installing icu4c (51.2)
Installing libetpan (1.3.pre2)
Installing libsasl2 (2.1.25)
Installing tidy-html5 (0.0.1)
configure: error: in `/Users/kgrigsby/Desktop/MC2CocoaPodsSample-master/Pods/ctemplate':
configure: error: cannot run C++ compiled programs.
If you meant to cross compile, use `--host'.
See `config.log' for more details
make: *** No rule to make target `src/htmlparser/htmlparser_fsm.h'.  Stop.
make: *** No rule to make target `src/htmlparser/jsparser_fsm.h'.  Stop.
configure: error: in `/Users/kgrigsby/Desktop/MC2CocoaPodsSample-master/Pods/icu4c/source':
configure: error: cannot run C compiled programs.
If you meant to cross compile, use `--host'.
See `config.log' for more details
make: *** No rule to make target `install-headers'.  Stop.
make: *** No rule to make target `install-headers'.  Stop.
make: *** No rule to make target `install-headers'.  Stop.
make: *** No rule to make target `install-headers'.  Stop.
make: *** No rule to make target `install-headers'.  Stop.
make: *** No rule to make target `install-headers'.  Stop.
make: *** No rule to make target `install-headers'.  Stop.
make: *** No rule to make target `install-headers'.  Stop.
make: *** No rule to make target `install-headers'.  Stop.
make: *** No rule to make target `install-headers'.  Stop.
rm: conftest.dSYM: is a directory
rm: conftest.dSYM: is a directory
rm: conftest.dSYM: is a directory
rm: conftest.dSYM: is a directory
rm: conftest.dSYM: is a directory
rm: conftest.dSYM: is a directory
rm: conftest.dSYM: is a directory
rm: conftest.dSYM: is a directory
rm: conftest.dSYM: is a directory
rm: conftest.dSYM: is a directory
rm: conftest.dSYM: is a directory
rm: conftest.dSYM: is a directory
rm: conftest.dSYM: is a directory
conftest.c:1:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int]
main(){int i=1;}
^~~~
conftest.c:2:5: warning: type specifier missing, defaults to 'int' [-Wimplicit-int]
    foo(){int i=6;}
    ^~~
conftest.c:2:19: warning: control reaches end of non-void function [-Wreturn-type]
    foo(){int i=6;}
                  ^
3 warnings generated.
rm: conftest.dSYM.dSYM: is a directory
Generating Pods project
Integrating client project

[!] From now on use `MC2CocoaPodsSample.xcworkspace`.

[!] [libsasl2 (2.1.25)] The pre install hook of the specification DSL has been deprecated, use the `resource_bundles` or the `prepare_command` attributes.

[!] [ctemplate (2.2.1)] The pre install hook of the specification DSL has been deprecated, use the `resource_bundles` or the `prepare_command` attributes.

[!] [icu4c (51.2)] The pre install hook of the specification DSL has been deprecated, use the `resource_bundles` or the `prepare_command` attributes.

And then trying to compile the project I got:

CompileC build/Pods.build/Debug-iphonesimulator/Pods-ctemplate.build/Objects-normal/i386/arena.o ctemplate/src/base/arena.cc normal i386 c++ com.apple.compilers.llvm.clang.1_0.compiler
    cd /Users/kgrigsby/Desktop/MC2CocoaPodsSample-master/Pods
    setenv LANG en_US.US-ASCII
    setenv 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 c++ -arch i386 -fmessage-length=0 -fdiagnostics-show-note-include-stack -fmacro-backtrace-limit=0 -std=gnu++11 -stdlib=libstdc++ -fmodules -fmodules-cache-path=/Users/kgrigsby/Library/Developer/Xcode/DerivedData/ModuleCache -Wno-trigraphs -fpascal-strings -O0 -Wno-missing-field-initializers -Wno-missing-prototypes -Werror=return-type -Werror=deprecated-objc-isa-usage -Werror=objc-root-class -Wno-non-virtual-dtor -Wno-overloaded-virtual -Wno-exit-time-destructors -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 -Wno-newline-eof -Wno-c++11-extensions -DDEBUG=1 -DCOCOAPODS=1 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator7.0.sdk -fexceptions -fasm-blocks -fstrict-aliasing -Wdeprecated-declarations -Winvalid-offsetof -g -Wno-sign-conversion -mios-simulator-version-min=4.3 -I/Users/kgrigsby/Desktop/MC2CocoaPodsSample-master/Pods/build/Debug-iphonesimulator/include -I/Users/kgrigsby/Desktop/MC2CocoaPodsSample-master/Pods/BuildHeaders -I/Users/kgrigsby/Desktop/MC2CocoaPodsSample-master/Pods/BuildHeaders/ctemplate -I/Users/kgrigsby/Desktop/MC2CocoaPodsSample-master/Pods/BuildHeaders/ctemplate/ctemplate -I/Users/kgrigsby/Desktop/MC2CocoaPodsSample-master/Pods/Headers -I/Users/kgrigsby/Desktop/MC2CocoaPodsSample-master/Pods/Headers/FXKeychain -I/Users/kgrigsby/Desktop/MC2CocoaPodsSample-master/Pods/Headers/GTMHTTPFetcher -I/Users/kgrigsby/Desktop/MC2CocoaPodsSample-master/Pods/Headers/MailCore2 -I/Users/kgrigsby/Desktop/MC2CocoaPodsSample-master/Pods/Headers/MailCore2/MailCore -I/Users/kgrigsby/Desktop/MC2CocoaPodsSample-master/Pods/Headers/SBJson -I/Users/kgrigsby/Desktop/MC2CocoaPodsSample-master/Pods/Headers/ctemplate -I/Users/kgrigsby/Desktop/MC2CocoaPodsSample-master/Pods/Headers/ctemplate/ctemplate -I/Users/kgrigsby/Desktop/MC2CocoaPodsSample-master/Pods/Headers/gtm-oauth2 -I/Users/kgrigsby/Desktop/MC2CocoaPodsSample-master/Pods/Headers/icu4c -I/Users/kgrigsby/Desktop/MC2CocoaPodsSample-master/Pods/Headers/libetpan -I/Users/kgrigsby/Desktop/MC2CocoaPodsSample-master/Pods/Headers/libsasl2 -I/Users/kgrigsby/Desktop/MC2CocoaPodsSample-master/Pods/Headers/libsasl2/sasl -I/Users/kgrigsby/Desktop/MC2CocoaPodsSample-master/Pods/Headers/tidy-html5 -I/Users/kgrigsby/Desktop/MC2CocoaPodsSample-master/Pods/Headers/tidy-html5/tidy -I/Users/kgrigsby/Desktop/MC2CocoaPodsSample-master/Pods/build/Pods.build/Debug-iphonesimulator/Pods-ctemplate.build/DerivedSources/i386 -I/Users/kgrigsby/Desktop/MC2CocoaPodsSample-master/Pods/build/Pods.build/Debug-iphonesimulator/Pods-ctemplate.build/DerivedSources -F/Users/kgrigsby/Desktop/MC2CocoaPodsSample-master/Pods/build/Debug-iphonesimulator -I/Users/kgrigsby/Desktop/MC2CocoaPodsSample-master/Pods/ctemplate/src -include /var/folders/77/fn8d_dgm8xj2bj0059bjt8w80000gn/C/com.apple.DeveloperTools/5.0.1-5A2034a/Xcode/SharedPrecompiledHeaders/Pods-ctemplate-prefix-cnwnaflktginpcbkbbezrtagsmqg/Pods-ctemplate-prefix.pch -MMD -MT dependencies -MF /Users/kgrigsby/Desktop/MC2CocoaPodsSample-master/Pods/build/Pods.build/Debug-iphonesimulator/Pods-ctemplate.build/Objects-normal/i386/arena.d --serialize-diagnostics /Users/kgrigsby/Desktop/MC2CocoaPodsSample-master/Pods/build/Pods.build/Debug-iphonesimulator/Pods-ctemplate.build/Objects-normal/i386/arena.dia -c /Users/kgrigsby/Desktop/MC2CocoaPodsSample-master/Pods/ctemplate/src/base/arena.cc -o /Users/kgrigsby/Desktop/MC2CocoaPodsSample-master/Pods/build/Pods.build/Debug-iphonesimulator/Pods-ctemplate.build/Objects-normal/i386/arena.o

/Users/kgrigsby/Desktop/MC2CocoaPodsSample-master/Pods/ctemplate/src/base/arena.cc:42:10: fatal error: 'config.h' file not found
#include <config.h>
         ^
1 error generated.
@Vaseltior
Copy link

I have the exact same issue

@jeffbailey
Copy link

I have the same issue. Is there a resolution?

@dinhvh
Copy link
Member

dinhvh commented Apr 4, 2014

Hi all,
Cocoapods support has been broken and I haven't found a way to fix it.
Let me know if someone wants to investigate this issue.
Thanks!

@Vaseltior
Copy link

I finally used the old way installation, by downloading the sources from github and adding the project as a dependancy. It works pretty well. Just follow the installation process of the doc here https://github.com/MailCore/mailcore2

The only one problem that was remaining was that the minizip files included in the mailcore lib are not suitable for cyphering, cyphering as been disabled and the crypt.h file needed when you try to enable zip cyphering, is missing. So I had to use another version of minizip to make everything work for me.

@dinhvh
Copy link
Member

dinhvh commented Apr 4, 2014

Sure. If you need the encryption feature, you need to zip the file outside of mailcore2.
mailcore2 doesn't support it for now.
Thanks for the feedback.

@Vaseltior
Copy link

I mean, you can't use the minizip files bundled with mailcore because they are overriding those in other cocoapods you could use. I had to copy the minizip files from other cocoapods inside the mailcore lib to make things work for me.

And by the way, you're welcome

@Duffycola
Copy link

I was able to compile and run the sample using Xcode 6.2 on latest Mavericks. However, when I open the storyboard, xcode hangs (have to force kill).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants