소개
게시글
질문&답변
프로젝트 생서 cocoapods 에러
죄송합니다 AI 답변만 보고 따라하다가 이상하게 진행된것같네요 ㅠㅠ 현재 프로젝트 생성하면 아래와 같이 에러가 발생합니다! gongmyeong@Huns-Pro documents % npx react-native@0.72.6 init MatzipApp --version 0.72.6 ###### ###### ### #### #### ### ## ### ### ## ## #### ## ## #### ## ## ## ## ## ## ### ### ## ## ######################## ## ###### ### ### ###### ### ## ## ## ## ### ### ## ### #### ### ## ### ## #### ######## #### ## ## ### ########## ### ## ## #### ######## #### ## ### ## ### #### ### ## ### ### ## ## ## ## ### ###### ### ### ###### ## ######################## ## ## ### ### ## ## ## ## ## ## #### ## ## #### ## ## ### ### ## ### #### #### ### ###### ###### Welcome to React Native! Learn once, write anywhere ✔ Downloading template✔ Copying template✔ Processing template✖ Installing Ruby Gemserror There was an error while trying to write to/Users/gongmyeong/.bundle/cache/compact_index/rubygems.org.443.29b0360b937aa4d161703e6160654e47/versions.It is likely that you need to grant write permissions for that path.✖ Installing Ruby Gemserror Looks like your iOS environment is not properly set. Please go to https://reactnative.dev/docs/environment-setup?os=macos&platform=android and follow the React Native CLI QuickStart guide for macOS and iOS.info Run CLI with --verbose flag for more details. rbenv -v 버전은 아래와 같이 나옵니다gongmyeong@Huns-Pro documents % rbenv -v rbenv 1.3.0
- 0
- 3
- 150
고민있어요
안녕하세요 질문있습니다!
- 0
- 1
- 72
질문&답변
문의드립니다.
sudo flutter doctor 입력하면 정상적으로 아래와같이 실행이 되는데 이대로 진행해도 괜찮은건가요?? Doctor summary (to see all details, run flutter doctor -v):[✓] Flutter (Channel stable, 3.19.5, on macOS 13.5.2 22G91 darwin-arm64, locale ko-KR)[✓] Android toolchain - develop for Android devices (Android SDK version 35.0.0-rc1)[!] Xcode - develop for iOS and macOS (Xcode 15.2) ✗ CocoaPods installed but not working. You appear to have CocoaPods installed but it is not working. This can happen if the version of Ruby that CocoaPods was installed with is different from the one being used to invoke it. This can usually be fixed by re-installing CocoaPods. To re-install see https://guides.cocoapods.org/using/getting-started.html#installation for instructions.[✓] Chrome - develop for the web[✓] Android Studio (version 2022.2)[✓] IntelliJ IDEA Ultimate Edition (version 2023.3.1)[✓] VS Code (version 1.88.0)[✓] Connected device (2 available) [✓] Network resources
- 0
- 2
- 283
질문&답변
안녕하세요 문의드립니다 !
google maps flutter 2.2.5사용중입니다 ! ㅠㅠ
- 0
- 2
- 418
질문&답변
안녕하세요 문의드립니다 !
(사진)에러메세지는 이렇게 뜹니다 ㅠ
- 0
- 2
- 418
질문&답변
카메라 위치 애니메이션으로 이동하기 수강중 질문
죄송합니다...머리가 나빠서 도저히 못찾겠습니다 ㅠ
- 0
- 4
- 515
질문&답변
카메라 위치 애니메이션으로 이동하기 수강중 질문
강의 그대로 따라했는데 ㅠㅠ 혹시 뭐가 잘못 됬을까요?
- 0
- 4
- 515
질문&답변
카메라 위치 애니메이션으로 이동하기 수강중 질문
import 'package:flutter/material.dart'; import 'package:geolocator/geolocator.dart'; import 'package:google_maps_flutter/google_maps_flutter.dart'; class HomeScreen extends StatefulWidget { const HomeScreen({super.key}); @override State createState() => _HomeScreenState(); } class _HomeScreenState extends State { bool choolCheckDone = false; GoogleMapController? mapController; static final LatLng companyLatLng = LatLng(35.785756, 128.634620); static final CameraPosition initialPosition = CameraPosition( target: companyLatLng, zoom: 15, ); static final double okDistance = 100; static final Circle withinDistanceCircle = Circle( circleId: CircleId('withinDistanceCircle'), center: companyLatLng, fillColor: Colors.blue.withOpacity(0.5), radius: okDistance, strokeColor: Colors.blue, strokeWidth: 1, ); static final Circle notWithinDistanceCircle = Circle( circleId: CircleId('notWithinDistanceCircle'), center: companyLatLng, fillColor: Colors.red.withOpacity(0.5), radius: okDistance, strokeColor: Colors.red, strokeWidth: 1, ); static final Circle checkDoneCircle = Circle( circleId: CircleId('checkDoneCircle'), center: companyLatLng, fillColor: Colors.green.withOpacity(0.5), radius: okDistance, strokeColor: Colors.green, strokeWidth: 1, ); static final Marker marker = Marker( markerId: MarkerId('marker'), position: companyLatLng, ); @override Widget build(BuildContext context) { return Scaffold( appBar: renderAppBar(), body: FutureBuilder( future: checkPermission(), builder: (BuildContext context, AsyncSnapshot snapshot) { if (snapshot.connectionState == ConnectionState.waiting) { return Center( child: CircularProgressIndicator(), ); } if (snapshot.data == '위치 권한이 허가되었습니다.') { return StreamBuilder( stream: Geolocator.getPositionStream(), builder: (context, snapshot) { bool isWithinRange = false; print(snapshot.hasData); if (snapshot.hasData) { final start = snapshot.data!; final end = companyLatLng; final distance = Geolocator.distanceBetween( start.latitude, start.longitude, end.latitude, end.longitude, ); if (distance checkPermission() async { final isLocationEnabled = await Geolocator.isLocationServiceEnabled(); if (!isLocationEnabled) { return '위치 서비스를 활성화 해주세요.'; } LocationPermission checkedPermission = await Geolocator.checkPermission(); if (checkedPermission == LocationPermission.denied) { checkedPermission = await Geolocator.requestPermission(); if (checkedPermission == LocationPermission.denied) { return '위치 권한을 허가해주세요.'; } } if (checkedPermission == LocationPermission.deniedForever) { return '앱의 위치 권한을 세팅에서 허가해주세요.'; } return '위치 권한이 허가되었습니다.'; } AppBar renderAppBar() { return AppBar( centerTitle: true, title: Text( '성 주 참 외', style: TextStyle( color: Colors.grey[800], fontWeight: FontWeight.w700, ), ), backgroundColor: Colors.white, ); } class _CustomGoogleMap extends StatelessWidget { final CameraPosition initialPosition; final Circle circle; final Marker marker; final MapCreatedCallback onMapCreated; const _CustomGoogleMap({ required this.initialPosition, required this.circle, required this.marker, required this.onMapCreated, super.key, }); @override Widget build(BuildContext context) { return Expanded( flex: 3, child: GoogleMap( initialCameraPosition: initialPosition, mapType: MapType.normal, myLocationEnabled: true, myLocationButtonEnabled: true, circles: Set.from([circle]), markers: Set.from([marker]), onMapCreated: onMapCreated, ), ); } } class _CheckButton extends StatelessWidget { final bool isWithinRange; final VoidCallback onPressed; final bool choolCheckDone; const _CheckButton( {required this.isWithinRange, required this.onPressed, required this.choolCheckDone, super.key}); @override Widget build(BuildContext context) { return Expanded( flex: 1, child: Center( child: Column( mainAxisAlignment: MainAxisAlignment.center, children: [ Icon( Icons.timelapse_outlined, size: 50.0, color: choolCheckDone ? Colors.green : isWithinRange ? Colors.blue : Colors.red, ), SizedBox( height: 20, ), if (!choolCheckDone && isWithinRange) TextButton( onPressed: onPressed, child: Text( '출근하기', style: TextStyle( color: Colors.grey[800], ), ), ), ], ), ), ); } }
- 0
- 4
- 515