Flutter ios Build not working on MacOS Big Sur 11.0 Beta - xcode

On MacOS BigSur Beta, I am trying to generate the build of iOS, but that is always giving me the following error.
I tried re-installing flutter, sitching to beta, dev or master and use of Xcode beta as well but nothing worked.
help me if anyone faced same issue and resolve that.
ERROR: Error installing cocoapods:
ERROR: Failed to build gem native extension.
current directory: /Library/Ruby/Gems/2.6.0/gems/json-2.3.1/ext/json/ext/generator
/System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/bin/ruby -I /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0 -r ./siteconf20200926-66152-11vu3z5.rb extconf.rb
creating Makefile
current directory: /Library/Ruby/Gems/2.6.0/gems/json-2.3.1/ext/json/ext/generator
make "DESTDIR=" clean
current directory: /Library/Ruby/Gems/2.6.0/gems/json-2.3.1/ext/json/ext/generator
make "DESTDIR="
compiling generator.c
In file included from generator.c:1:
In file included from ./../fbuffer/fbuffer.h:5:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/include/ruby-2.6.0/ruby.h:33:
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/include/ruby-2.6.0/ruby/ruby.h:24:10: fatal error: 'ruby/config.h' file not found
#include "ruby/config.h"
^~~~~~~~~~~~~~~
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/include/ruby-2.6.0/ruby/ruby.h:24:10: note: did not find header 'config.h' in framework 'ruby' (loaded from '/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks')
1 error generated.
make: *** [generator.o] Error 1
make failed, exit code 2
Gem files will remain installed in /Library/Ruby/Gems/2.6.0/gems/json-2.3.1 for inspection.
Results logged to /Library/Ruby/Gems/2.6.0/extensions/universal-darwin-20/2.6.0/json-2.3.1/gem_make.out

Let's try installing old version cocoapods.
Uninstall cocoapods
install old version cocoapods (e.g. 1.8.0)sudo gem install cocoapods --version '=1.8.0' -n /usr/local/bin
flutter clean
pub get
run your project (iOS simulator)
I resolved the error using this procedure.

Related

During Openssl build: How to fix "fatal error: apps/app_rand.d: no such file or directory, compilation terminated"

I am attempting to update openssl to 1.1.1 on centos 7 in order to start building OpenLDAP.
After pulling the openssl installation package and unzipping it in /usr/local/src/ I ran ./config --prefix=/usr/local/ssl --openssldir=/usr/local/ssl shared zlib. This command successfully configured openssl.
I then ran the make command to build openssl and got the following error:
cc1: fatal error: apps/app_rand.d: no such file or directory
compilation terminated
make(1): *** (apps/app.rand.o) Error 1
make(1): Leaving directory '/usr/local/src/openssl-1.1.1d'
make: *** (all) Error 2
The apps directory was created and does exist, but the app_rand.d file is not present inside of the apps directory.
I have downloaded all dependencies (i believe)
I am decent in linux, I have my rhcsa, but am not familiar with manually building software libraries like openssl. I have tried to do some research online but have not come up with any solutions. Any advice would be very much appreciated!

error installing ruby old version 2.0.0-p247

I am trying to run command
rbenv install 2.0.0-p247
I tried to follow several steps by googling the errors that I faced but I am still not able to resolve the error
I got this error
BUILD FAILED (macOS 11.4 using ruby-build 20210804)
Inspect or clean up the working tree at /var/folders/xm/rfncj90s56x8d1wdj0sl_0w40000gn/T/ruby-build.20210814020658.2987.F4rCnt
Results logged to /var/folders/xm/rfncj90s56x8d1wdj0sl_0w40000gn/T/ruby-build.20210814020658.2987.log
Last 10 log lines:
compiling ancdata.c
compiling raddrinfo.c
installing default socket libraries
compiling constants.c
1 warning generated.
linking shared-object ripper.bundle
ld: warning: directory not found for option '-L/Users/username/.rbenv/versions/2.0.0-p247/lib'
linking shared-object socket.bundle
ld: warning: directory not found for option '-L/Users/username/.rbenv/versions/2.0.0-p247/lib'
make: *** [build-ext] Error 2
The log file mentioned above has content:
https://easyupload.io/gygw5y
Ruby 2.0.0 is very much past its end of life, so I'm assuming you have a specific reason you need install it. Otherwise, you are much better off installing a modern, supported version such as 2.7.x or 3.0.x.
Older versions of ruby were built with openssl#1.0. After 1.0 went end of life, ruby-build had a breaking change to require openssl#1.1. This means that ruby versions < 2.4 can no longer be installed/built directly using ruby-build (i.e., rbenv). This GitHub issue has details.
Homebrew has removed its openssl#1.0 formula, but you can still install it via an rbenv tap. The following might work for you, though the comments in the issue report mixed results depending on the version of Command Line Tools being used.
brew install rbenv/tap/openssl#1.0
RUBY_CONFIGURE_OPTS="--with-openssl-dir=$(brew --prefix openssl#1.0)" 2.0.0-p247
Note: if you are running on an M1 (Apple Silicon) Mac, you might be out of luck. AFIK, there's no intention of getting openssl#1.0 to to work on Apple Silicon.

Xcode 11 beta 4 error: Command CompileSwiftSources failed with a nonzero exit code

I've downloaded the latest Xcode beta 4. When I build I'm getting the same error with 3 of my pods:
Command CompileSwiftSources failed with a nonzero exit code
<unknown>:0: error: unknown argument: '-w'
<unknown>:0: error: unknown argument: '-Xanalyzer'
<unknown>:0: error: unknown argument: '-analyzer-disable-all-checks'
This is the MarqueeLabel pod logs:
I have tried:
Cleaning and deep cleaning (shift + alt + cmd + k)
Deleting the Derived Data folder
Restarting Xcode
I can't see the error listed in the release notes.
https://developer.apple.com/documentation/xcode_release_notes/xcode_11_beta_4_release_notes
Does anyone know what the problem is or a workaround?
There is a known issue with Cocoapods and Xcode 11 Beta 4 where inhibit_all_warnings! causes arguments to be set for Swift which do not compile. Removing this inhibit resolves the issue, and Swift warnings can be inhibited with SWIFT_SUPPRESS_WARNINGS = YES on targets instead.
CocoaPods had a fix for this that got released as part of CocoaPods 1.7.5.
Below is the answer preceding the 1.7.5 release:
If you need to use Xcode 11 Beta 4 in the mean time, you could install a patched version of CocoaPods from that pull request:
1. Open Gemfile, replace gem 'cocoapods' with
gem 'cocoapods', :git => 'https://github.com/dnkoutso/CocoaPods.git', :branch => "swift_compiler_warnings"
2. Run bundle install and bundle exec pod install
Keep in mind, this is a temporary solution.
The latest version of CocoaPods (1.7.5) has this issue fixed!
In Terminal run
sudo gem update cocoapods
And then, on your project directory
pod install
Resolved for me!!!!
The issue is actually i created two files with same name. So after i renamed one of a file and error cleared.

Installing Nokogiri with a modified Makefile

When I try to create a new rails project on my PowerPC Mac OS X with ruby-2.4.2 and rails-5.1, it started to download and install various gems and during the build step of nokogiri-1.10 I got
cc1: error: unrecognized command line option "-Wno-array-bounds"
during the compilation of libxml2.9.9. I modified the
~/.chefdk/gem/ruby/2.1.0/gems/nokogiri-1.10.1/ext/nokogiri/tmp/powerpc-apple-darwin9.8.0/ports/libxml2/2.9.9/libxml2-2.9.9/Makefile
to comment out the error causing -Wno-array-bounds option and remade the project but it gave the same error again. I guess it's reverting back the original Makefile. How can I install nokogiri with a modified Makefile?

Smokeping make install error

i try to install newest version smokeping and get error when run "make install". I do everything as written on the official website.
make[1]: Entering directory '/home/artemto/smokeping-2.7.2/thirdparty'
echo "If the moduile install hangs, this may be because one of the modules expects you to press [return] without telling you ... just do it!"
If the moduile install hangs, this may be because one of the modules expects you to press [return] without telling you ... just do it!
GEN touch
! Installing FCGI failed. See /home/artemto/smokeping-2.7.2/thirdparty/work/1533497827.2903/build.log for details. Retry with --force to force install it.
CGI is up to date. (4.38)
CGI::Fast is up to date. (2.13)
Config::Grammar is up to date. (1.12)
! Configure failed for Socket6-0.28. See /home/artemto/smokeping-2.7.2/thirdparty/work/1533497827.2903/build.log for details.
IO::Socket::SSL is up to date. (2.056)
Digest::HMAC_MD5 is up to date. (1.01)
Net::Telnet is up to date. (3.04)
Net::OpenSSH is up to date. (0.77)
Net::SNMP is up to date. (v6.0.1)
! Installing Text::Soundex failed. See /home/artemto/smokeping-2.7.2/thirdparty/work/1533497827.2903/build.log for details. Retry with --force to force install it.
! Couldn't find module or a distribution GSSAPI
! Installing the dependencies failed: Module 'Text::Soundex' is not installed
! Bailing out the installation for perl-ldap-0.65.
Net::DNS is up to date. (1.15)
! Configure failed for IO-Tty-1.12. See /home/artemto/smokeping-2.7.2/thirdparty/work/1533497827.2903/build.log for details.
LWP is up to date. (6.33)
Authen::Radius is up to date. (0.26)
Path::Tiny is up to date. (0.104)
Makefile:410: recipe for target 'touch' failed
make[1]: *** [touch] Error 123
make[1]: Leaving directory '/home/artemto/smokeping-2.7.2/thirdparty'
Makefile:363: recipe for target 'install-recursive' failed
make: *** [install-recursive] Error 1
Problem solved, sorry for make this quickly post
apt install gcc
I get similar problem on Debian 9.5 and smokeping-2.7.2.tar.gz .
Installed the following packages prior to compilation and I assume some other package is missing but which?
apt-get install rrdtool curl perl make gcc
curl is already the newest version (7.52.1-5+deb9u6).
gcc is already the newest version (4:6.3.0-4).
make is already the newest version (4.1-9.1).
perl is already the newest version (5.24.1-3+deb9u4).
rrdtool is already the newest version (1.6.0-1+b2).
...
Successfully installed Data-HexDump-0.02
Successfully installed Authen-Radius-0.26
Successfully installed Path-Tiny-0.104
37 distributions installed
Makefile:410: recipe for target 'touch' failed
make[1]: *** [touch] Error 123
make[1]: Leaving directory '/home/cisadmin/smokeping/thirdparty'
Makefile:363: recipe for target 'install-recursive' failed
make: *** [install-recursive] Error 1
root#l-mog-horch:/home/cisadmin/smokeping#
EDIT
It works fine with 2.7.1 so something is wrong in the 2.7.2 package...

Resources