Created
July 26, 2021 20:42
-
-
Save yogithesymbian/c402c28281a0fe9db3c1a16b71ec25a3 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
similiar issue : https://stackoverflow.com/questions/67568375/searching-for-inspections-failed-undefined-method-map-for-nil-nilclass-in-fl , and https://github.com/CocoaPods/CocoaPods/issues/8425 | |
i have try with | |
``` | |
pod cache clean | |
pod deintegrate | |
pod install | |
``` | |
``` | |
➜ ios git:(development) ✗ pod install | |
Analyzing dependencies | |
/Library/Ruby/Gems/2.6.0/gems/ffi-1.15.3/lib/ffi/library.rb:275: [BUG] Bus Error at 0x00000001006cc000 | |
ruby 2.6.3p62 (2019-04-16 revision 67580) [universal.arm64e-darwin20] | |
-- Crash Report log information -------------------------------------------- | |
See Crash Report log file under the one of following: | |
* ~/Library/Logs/DiagnosticReports | |
* /Library/Logs/DiagnosticReports | |
for more details. | |
Don't forget to include the above Crash Report log file in bug reports. | |
``` | |
and | |
``` | |
➜ ios git:(development) ✗ gem update xcodeproj | |
Updating installed gems | |
Nothing to update | |
``` | |
i am new on flutter, i dunno why this issue came from when i run `open ios/Runner.xcworkspace ` my project is broken, so when i rollback my git there is no error. and different is my previous git ,, the start debugging is not generate Podfile in ios folder but in latest git push always generate the file. and inject `#include? "Pods/Target Support Files/Pods-Runner/Pods-Runner.debug.xcconfig"` into `Debug.xcconfig` and `#include? "Pods/Target Support Files/Pods-Runner/Pods-Runner.release.xcconfig"` into `Release.xcconfig`. | |
``` | |
Process: ruby [31132] | |
Path: /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/bin/ruby | |
Identifier: ruby | |
Version: 145.100.1 | |
Code Type: ARM-64 (Native) | |
Parent Process: zsh [16103] | |
Responsible: iTerm2 [15883] | |
User ID: 501 | |
Date/Time: 2021-07-27 03:49:46.271 +0800 | |
OS Version: macOS 11.4 (20F71) | |
``` | |
**this my full [/Library/Logs/DiagnosticReports][1]** | |
there is found some instruction ```Yes most likely. I had a different pods installation where i had to manually edit the xcodeproj to remove the sections causing the problem.``` and ```The same issue occurred to me when }; was missing in .xcodeproj file. After fixing this the Cocopoads started working again.``` | |
but i dunno what edit for ... | |
other project is fine so im not sure to run | |
``` | |
rm -rf ~/.cocoapods/repos/Spec_Lock | |
and | |
rm -rf ~/.cocoapods/repos/trunk/ | |
``` | |
by https://github.com/CocoaPods/CocoaPods/issues/9578#issuecomment-631070152. | |
``` | |
➜ flutter git:(development) ✗ rm -rf ~/.cocoapods/repos/Spec_Lock | |
➜ flutter git:(development) ✗ rm -rf ~/.cocoapods/repos/trunk/ | |
``` | |
now start debugging still error | |
Searching for inspections failed: undefined method `map' for nil:NilClass | |
Error running pod install | |
Error launching application on iPhone 12 Pro Max. | |
**this my [log start debugging][2]** | |
**[EDIT] [already solved] by these issue** | |
new i have found similiar issue https://stackoverflow.com/questions/67318568/problem-with-cocoa-pods-undefined-method-map-for-nilnilclass my device is mbp m1, | |
`sudo arch -x86_64 gem install ffi` and `arch -x86_64 pod install` | |
[1]: https://gist.githubusercontent.com/yogithesymbian/b554600844b3fc1fb5b617841d12e1be/raw/6714dc53e58a56da5f88c0dac42cb7ff0a61760b/rubby%2520log | |
[2]: https://gist.githubusercontent.com/yogithesymbian/e444220e484dfad57c6aaa7c747e098c/raw/5de823841ce4e6d883a5bfd44999eafe59134fec/Searching%2520for%2520inspections%2520failed:%2520undefined%2520method%2520%2560map'%2520for%2520nil:NilClass |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment