Does Pivotal projectmonitor require Xcode? - ruby-on-rails

My iMac(Mac OS Sierra V10.12) doesn't have Xcode. so I get below error during 'bundle install'. When I tried to install Xcode from AppStore, I realized it's of size 4 GB. SO just wanted to ensure I am not doing something wrong.
current directory:
/Users/xecckq4/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/capybara-webkit-1.11.1
/Users/xecckq4/.rbenv/versions/2.3.1/bin/ruby -r
./siteconf20170813-3495-gf683v.rb extconf.rb
Project ERROR: Xcode not set up properly. You may need to confirm the license
agreement by running /usr/bin/xcodebuild.
* extconf.rb failed *

extconf.rb configures the makefile that specifies all the things you'll need to build a gem. In your case, XCode is required, so yes, by all means, download and install it.
If you're on a Mac, you're probably going to be making use of Homebrew as well, which also depends on XCode (as do a number of other gems you'll run into sooner or later), so even if decided to ignore this issue, you'd need XCode sooner or later.

Related

I have issues starting a Ruby on Rails project

I'm starting a new project but I have issues installing sqlite3 on my computer. What is the problem?
Building native extensions. This could take a while...
ERROR: Error installing sqlite3:
ERROR: Failed to build gem native extension.
current directory: C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/sqlite3-1.4.0/ext/sqlite3
C:/Ruby26-x64/bin/ruby.exe -I C:/Ruby26-x64/lib/ruby/2.6.0 -r ./siteconf20190428-9612-10i9sod.rb extconf.rb
checking for sqlite3.h... yes
checking for pthread_create() in -lpthread... yes
checking for -ldl... no
checking for dlopen()... no
missing function dlopen
*** extconf.rb failed ***
Could not create Makefile due to some reason, probably lack of necessary
libraries and/or headers. Check the mkmf.log file for more details. You may
need configuration options.
I have already installed Ruby, Rails, Bundle. But apparently, something is missing.
I had this error on my win7, and this was my solution:
type ridk exec pacman -S mingw-w64-x86_64-dlfcn and install
This should work if your install ruby in 'common' way. Like 'rubyinstaller'.
You can consider skipping SQLite altogether. The only reason Rails is setup for SQLite by default is that its easy to setup up on most systems. If not then its mostly a waste of time.
Its not really a viable option for deployment as its file based. This is especially if you want to deploy to cloud platforms such as Heroku which use ephemeral file systems.
You will want to develop and test on the same database that you are going to deploy to such as Postgres.
Differences between backing services mean that tiny incompatibilities
crop up, causing code that worked and passed tests in development or
staging to fail in production. These types of errors create friction
that disincentivizes continuous deployment. The cost of this friction
and the subsequent dampening of continuous deployment is extremely
high when considered in aggregate over the lifetime of an application.
https://12factor.net/dev-prod-parity

Documentation target starts generating "Objective-C garbage collection is no longer supported"

In my app I have a default Documentation target that's been there for a long time.
Today, out of the blue (it seems), it stops building with:
objc[3964]: Objective-C garbage collection is no longer supported.
/Users/case/Library/Developer/Xcode/DerivedData/Talk-ghsjogqghrvpujdilbabqcornjqr/Build/Intermediates.noindex/Talk.build/Debug-iphoneos/Documentation.build/Script-48338F031615E3F60033F4C1.sh: line 2: 3964 Abort trap: 6 /Applications/appledoc --verbose xcode $SOURCE_ROOT/$PROJECT_NAME
Command /bin/sh failed with exit code 134
I tried Xcode > Product > Clean Build Folder..., emptying the DerivedData directory, and restarting Xcode.
Any idea how to fix this rather annoying issue?
This looks like you may have an old copy of appledoc in your /Applications directory. I suspect you built it at some point, installed it, and never upgraded it. I suspect your copy is v2.0 (~2010), which had garbage collection turned on. Garbage collection has been deprecated for years, and was recently removed from the OS. The current version is 2.2.1 (released in 2015).
Upgrade appledoc. My preferred way to handle those kinds of packages is with Homebrew
rm /Applications/appledoc
brew install appledoc

'Found an uxexpected Mach-O header code: 0x72613c21' when trying to export an archive to IPA.

So I recently had this issue when deploying to my device:
(null): error: bitcode_strip /Users/me/Library/Developer/Xcode/DerivedData/AppName-gximcjgdoodczthglfujqgpzamxl/Build/Products/Debug-iphoneos/Pods.framework/Pods: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/bitcode_strip exited with 1
I didn't encounter this error when deploying to a simulator though.
I found a solution here which says that I should set a user defined attribute 'STRIP_BITCODE_FROM_COPIED_FILES' to no.
Since then, I now get "Found an uxexpected Mach-O header code: 0x72613c21" when trying to export an archive.
Before the bitcode_strip issue, I was having no problem exporting archives so I'm wondering if the fix caused the current issue I'm facing, or if perhaps they are unrelated? If they are unrelated, what could actually be causing this?
here is the verbose IDEDistribution log
critical distribution log
standard distribution log
I have the same issue. I solved the problem when:
Uninstall cocoapods (I had installed cocoapods 0.39):
sudo gem uninstall cocoapods
Install cocoa pods 0.38.2:
sudo gem install cocoapods -v 0.38.2
For me, I went to TARGETS > General > Embedded Binaries
and removed my embedded binary (which was grey instead of yellow and happened to be Realm.framework)
Archive and submitted to iTunes then worked.
I wonder if it is because I had the Realm.framework embedded binary, but hadn't included the realm header or used realm yet - so maybe the compiler 'tried optimize away' my framework?

Not able to install some gems after mountain lion upgrade

I just updated my Macbook to Mountain Lion, but now I'm not able to install some gems, because of the below error about headers. I looked around and it seems to have to do with Ruby headers missing. It was suggested to install Xcode, so I installed the full Xcode from the app store and also the Xcode command line tools. But still no luck. Any suggestions?
ERROR: Failed to build gem native extension. (Gem::Installer::ExtensionBuildError)
checking for ffi.h... *** extconf.rb failed ***
Could not create Makefile due to some reason, probably lack of
necessary libraries and/or headers. Check the mkmf.log file for more
details. You may need configuration options.
Be sure to install Xcode's Command-Line Tools.
This hint helped me with this issue:
sudo ln -s /usr/bin/llvm-gcc-4.2 /usr/bin/gcc-4.2
I was able to get things working by just installing "Command Line Tools 10.8 for Xcode - Late July 2012" (not XCode itself) from:
https://developer.apple.com/downloads/index.action
(Follow the "View all downloads" link from the Mac Dev Center page)
FYI, I did not have XCode installed on Lion, just the "Command Line Tools". Not sure if the new XCode command line tools will play nice with the old XCode.

Compiling Qt for iOS (UIKit lighthouse) part 2

I'm trying to compile Qt for the iOS simulator, as explained in this article.
At first I ran into this problem but after it (kinda) solved itself I had some more.
First I kept getting this error after executing the first command, which is supposed to build qmake (../qt/configure ... etc etc):
The OpenGL ES 2.0 functionality test failed!
You might need to modify the include and library search paths by editing QMAKE_INCDIR_OPENGL_ES2, QMAKE_LIBDIR_OPENGL_ES2 and QMAKE_LIBS_OPENGL_ES2 in /Qt/qt/mkspecs/qpa/macx-iphonesimulator-g++.
Since I knew that I had the 4.3 SDK, I delved into it some more, analyzed the configure script, and after some tracing I saw that the Makefile generated by qmake, required g++-4.2 (which I didn't have), so I just ln -s g++ g++-4.2 and ln -s gcc gcc-4.2 in /Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/.
I'm not sure if the aforementioned steps matter, that's why I'm writing about them. Anyway, with that, the configure step was successful. Now I ran make. After some successfully compiled files I got this:
In file included from /Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator4.3.sdk/System/Library/Frameworks/CoreServices.framework/Frameworks/WebServicesCore.framework/Headers/WebServicesCore.h:15,
from /Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator4.3.sdk/System/Library/Frameworks/CoreServices.framework/Headers/CoreServices.h:37,
from ../../include/QtCore/private/../../../../qt/src/corelib/kernel/qcore_mac_p.h:83,
from ../../include/QtCore/private/qcore_mac_p.h:1,
from /Qt/qt/src/corelib/tools/qlocale_mac.mm:49:
/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator4.3.sdk/System/Library/Frameworks/CoreServices.framework/Frameworks/WebServicesCore.framework/Headers/WSMethodInvocation.h:759:
error: 'CFXMLTreeRef' has not been declared
The same error appears several more times, from several different lines of WebServicesCore.h. So, basically, here's where I'm stuck now.
Any help? Again?...
Edit: Absolutely, 100% the same thing happens when I configure and try to make Qt for the device (as opposed to the simulator)
Additional info:
gcc --version : i686-apple-darwin11-llvm-gcc-4.2 (GCC) 4.2.1 (Based on Apple Inc. build 5658) (LLVM build 2336.1.00)
iOS SDK: I have both 4.3 and 5
OS X version: 10.7.2
Xcode version (if it matters): 4.2.1
Didn't you forget to add -nomake tools and other -nomake ... to your configure ?
Try poking this guys: http://labs.qt.nokia.com/2011/08/09/update-on-uikit-lighthouse-platform/

Resources