Ali
ArgumentError - [Xcodeproj] Unable to find compatibility version string for object version `70`. /Users/b2b_2/.rbenv/versions/3.2.0/lib/ruby/gems/3.2.0/gems/xcodeproj-1.27.0/lib/xcodeproj/project.rb:85:in `initialize' /Users/b2b_2/.rbenv/versions/3.2.0/lib/ruby/gems/3.2.0/gems/cocoapods-1.16.2/lib/cocoapods/project.rb:48:in `initialize' /Users/b2b_2/.rbenv/versions/3.2.0/lib/ruby/gems/3.2.0/gems/cocoapods-1.16.2/lib/cocoapods/installer/xcode/pods_project_generator/project_generator.rb:82:in `new' /Users/b2b_2/.rbenv/versions/3.2.0/lib/ruby/gems/3.2.0/gems/cocoapods-1.16.2/lib/cocoapods/installer/xcode/pods_project_generator/project_generator.rb:82:in `create_project' /Users/b2b_2/.rbenv/versions/3.2.0/lib/ruby/gems/3.2.0/gems/cocoapods-1.16.2/lib/cocoapods/installer/xcode/pods_project_generator/project_generator.rb:73:in `generate!' /Users/b2b_2/.rbenv/versions/3.2.0/lib/ruby/gems/3.2.0/gems/cocoapods-1.16.2/lib/cocoapods/installer/xcode/single_pods_project_generator.rb:16:in `generate!' /Users/b2b_2/.rbenv/versions/3.2.0/lib/ruby/gems/3.2.0/gems/cocoapods-1.16.2/lib/cocoapods/installer.rb:320:in `block in create_and_save_projects' /Users/b2b_2/.rbenv/versions/3.2.0/lib/ruby/gems/3.2.0/gems/cocoapods-1.16.2/lib/cocoapods/user_interface.rb:64:in `section' /Users/b2b_2/.rbenv/versions/3.2.0/lib/ruby/gems/3.2.0/gems/cocoapods-1.16.2/lib/cocoapods/installer.rb:315:in `create_and_save_projects' /Users/b2b_2/.rbenv/versions/3.2.0/lib/ruby/gems/3.2.0/gems/cocoapods-1.16.2/lib/cocoapods/installer.rb:307:in `generate_pods_project' /Users/b2b_2/.rbenv/versions/3.2.0/lib/ruby/gems/3.2.0/gems/cocoapods-1.16.2/lib/cocoapods/installer.rb:183:in `integrate' /Users/b2b_2/.rbenv/versions/3.2.0/lib/ruby/gems/3.2.0/gems/cocoapods-1.16.2/lib/cocoapods/installer.rb:170:in `install!' /Users/b2b_2/.rbenv/versions/3.2.0/lib/ruby/gems/3.2.0/gems/cocoapods-1.16.2/lib/cocoapods/command/install.rb:52:in `run' /Users/b2b_2/.rbenv/versions/3.2.0/lib/ruby/gems/3.2.0/gems/claide-1.1.0/lib/claide/command.rb:334:in `run' /Users/b2b_2/.rbenv/versions/3.2.0/lib/ruby/gems/3.2.0/gems/cocoapods-1.16.2/lib/cocoapods/command.rb:52:in `run' /Users/b2b_2/.rbenv/versions/3.2.0/lib/ruby/gems/3.2.0/gems/cocoapods-1.16.2/bin/pod:55:in `<top (required)>' /Users/b2b_2/.rbenv/versions/3.2.0/bin/pod:25:in `load' /Users/b2b_2/.rbenv/versions/3.2.0/bin/pod:25:in `<main>' ――― TEMPLATE END ―――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――― [!] Oh no, an error occurred. Search for existing GitHub issues similar to yours: https://github.com/CocoaPods/CocoaPods/search?q=%5BXcodeproj%5D+Unable+to+find+compatibility+version+string+for+object+version+%6070%60.&type=Issues If none exists, create a ticket, with the template displayed above, on: https://github.com/CocoaPods/CocoaPods/issues/new Be sure to first read the contributing guide for details on how to properly submit a ticket: https://github.com/CocoaPods/CocoaPods/blob/master/CONTRIBUTING.md Don't forget to anonymize any private data! Looking for related issues on cocoapods/cocoapods... - CocoaPods don't install in my project https://github.com/CocoaPods/CocoaPods/issues/12735 [open] [6 comments] 3 weeks ago - ArgumentError - [Xcodeproj] Unable to find compatibility version string for object version `70`. https://github.com/CocoaPods/CocoaPods/issues/12671 [closed] [27 comments] 17 hours ago - pod install has bug https://github.com/CocoaPods/CocoaPods/issues/10723 [closed] [34 comments] 29 Oct 2024 and 2 more at: https://github.com/cocoapods/cocoapods/search?q=%5BXcodeproj%5D%20Unable%20to%20find%20compatibility%20version%20string%20for%20object%20version%20%6070%60.&type=Issues&utf8=✓ ```
whyamsx
ничего не понятно, маловато информации из ошибки
Vitaliy
ArgumentError - [Xcodeproj] Unable to find compatibility version string for object version `70`. /Users/b2b_2/.rbenv/versions/3.2.0/lib/ruby/gems/3.2.0/gems/xcodeproj-1.27.0/lib/xcodeproj/project.rb:85:in `initialize' /Users/b2b_2/.rbenv/versions/3.2.0/lib/ruby/gems/3.2.0/gems/cocoapods-1.16.2/lib/cocoapods/project.rb:48:in `initialize' /Users/b2b_2/.rbenv/versions/3.2.0/lib/ruby/gems/3.2.0/gems/cocoapods-1.16.2/lib/cocoapods/installer/xcode/pods_project_generator/project_generator.rb:82:in `new' /Users/b2b_2/.rbenv/versions/3.2.0/lib/ruby/gems/3.2.0/gems/cocoapods-1.16.2/lib/cocoapods/installer/xcode/pods_project_generator/project_generator.rb:82:in `create_project' /Users/b2b_2/.rbenv/versions/3.2.0/lib/ruby/gems/3.2.0/gems/cocoapods-1.16.2/lib/cocoapods/installer/xcode/pods_project_generator/project_generator.rb:73:in `generate!' /Users/b2b_2/.rbenv/versions/3.2.0/lib/ruby/gems/3.2.0/gems/cocoapods-1.16.2/lib/cocoapods/installer/xcode/single_pods_project_generator.rb:16:in `generate!' /Users/b2b_2/.rbenv/versions/3.2.0/lib/ruby/gems/3.2.0/gems/cocoapods-1.16.2/lib/cocoapods/installer.rb:320:in `block in create_and_save_projects' /Users/b2b_2/.rbenv/versions/3.2.0/lib/ruby/gems/3.2.0/gems/cocoapods-1.16.2/lib/cocoapods/user_interface.rb:64:in `section' /Users/b2b_2/.rbenv/versions/3.2.0/lib/ruby/gems/3.2.0/gems/cocoapods-1.16.2/lib/cocoapods/installer.rb:315:in `create_and_save_projects' /Users/b2b_2/.rbenv/versions/3.2.0/lib/ruby/gems/3.2.0/gems/cocoapods-1.16.2/lib/cocoapods/installer.rb:307:in `generate_pods_project' /Users/b2b_2/.rbenv/versions/3.2.0/lib/ruby/gems/3.2.0/gems/cocoapods-1.16.2/lib/cocoapods/installer.rb:183:in `integrate' /Users/b2b_2/.rbenv/versions/3.2.0/lib/ruby/gems/3.2.0/gems/cocoapods-1.16.2/lib/cocoapods/installer.rb:170:in `install!' /Users/b2b_2/.rbenv/versions/3.2.0/lib/ruby/gems/3.2.0/gems/cocoapods-1.16.2/lib/cocoapods/command/install.rb:52:in `run' /Users/b2b_2/.rbenv/versions/3.2.0/lib/ruby/gems/3.2.0/gems/claide-1.1.0/lib/claide/command.rb:334:in `run' /Users/b2b_2/.rbenv/versions/3.2.0/lib/ruby/gems/3.2.0/gems/cocoapods-1.16.2/lib/cocoapods/command.rb:52:in `run' /Users/b2b_2/.rbenv/versions/3.2.0/lib/ruby/gems/3.2.0/gems/cocoapods-1.16.2/bin/pod:55:in `<top (required)>' /Users/b2b_2/.rbenv/versions/3.2.0/bin/pod:25:in `load' /Users/b2b_2/.rbenv/versions/3.2.0/bin/pod:25:in `<main>' ――― TEMPLATE END ―――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――― [!] Oh no, an error occurred. Search for existing GitHub issues similar to yours: https://github.com/CocoaPods/CocoaPods/search?q=%5BXcodeproj%5D+Unable+to+find+compatibility+version+string+for+object+version+%6070%60.&type=Issues If none exists, create a ticket, with the template displayed above, on: https://github.com/CocoaPods/CocoaPods/issues/new Be sure to first read the contributing guide for details on how to properly submit a ticket: https://github.com/CocoaPods/CocoaPods/blob/master/CONTRIBUTING.md Don't forget to anonymize any private data! Looking for related issues on cocoapods/cocoapods... - CocoaPods don't install in my project https://github.com/CocoaPods/CocoaPods/issues/12735 [open] [6 comments] 3 weeks ago - ArgumentError - [Xcodeproj] Unable to find compatibility version string for object version `70`. https://github.com/CocoaPods/CocoaPods/issues/12671 [closed] [27 comments] 17 hours ago - pod install has bug https://github.com/CocoaPods/CocoaPods/issues/10723 [closed] [34 comments] 29 Oct 2024 and 2 more at: https://github.com/cocoapods/cocoapods/search?q=%5BXcodeproj%5D%20Unable%20to%20find%20compatibility%20version%20string%20for%20object%20version%20%6070%60.&type=Issues&utf8=✓ ```
https://github.com/CocoaPods/CocoaPods/issues/12671 Попробуйте здесь посмотреть
Gena
маловато, да?)
Скорее подача ))) Мыж не llm, чтоб вот это разбирать ))) Там довольно очевидно на самом деле, как Виталий и подсказал... но вот я бы поленился это делать, раз автор вопроса ленится )
Gena
Более того, даже сами авторы cocoapods потрудились и выводят первые несколько ишьюсов связанных с ошибкой, прям с линком. Нужный присутствует в списке )
g
Здравствуйте, подскажите пожалуйста что здесь не так в коде? Expo router просто отказывается показывать файлы из папки user в приложении
g
В package.json "main": "expo-router/entry"
g
Когда меняю название файла index на другое, не показывает окна вовсе
Марат
А initial какой стоит
Марат
Экран
Марат
Не совсем понятно вы с какого то экрана пытаетесь перейти на экран user?
g
А initial какой стоит
В каком файле это должно быть? Не могу найти
Марат
Какой первый экрае должен быть при запуске приложения?
g
Если пользователь не авторизован то loginScreen
Марат
А где он у вас
g
Ой, извиняюсь
g
Не тот скрин отправил
Марат
Так, первый экран логин скрин при запуске приложения, он у вас отображается?
g
Нет
g
Только если по линку перехожу
g
По умолчанию открывается только табс
Марат
А пришлите как роутер описан
g
В _layout ?
Марат
Думаю да, в app/_layout
g
Вот стэк экранов, когда удалял стэк с табс, ничего не менялось
Марат
А если указать initialRoute
Марат
User
Марат
Работает?
g
Сейчас попробую
Alex
_layout из user надо смотреть
Марат
И там тоже да
Марат
А то может там пытается перейти в user/index которого нет
Марат
Или чтото в этом роде
Alex
И что это?)
g
Кажется что-то не очень хорошее
g
Это _layout из user
Alex
И что user/loginScreen не открывается?
g
Неа
g
Только по ссылке
g
Думаю лучшим вариантом будет поменять внутренности папок местами
g
И после итогом авторизации сделать ссылку на табы
g
Но в прошлых моих потугах с реакт нейтив, то как я пытался это сделать работало отлично, но внезапно и то приложение перестало работать
Rammonium
А что в app/{tabs)/_layout.tsx ?
Alex
Только по ссылке
Так я о ней и пишу.
g
Так я о ней и пишу.
По ссылке все работает
Alex
По ссылке все работает
Что expo пишут про Auth flow с expo router?
Rammonium
а где сам файл index.tsx ?
g
Что expo пишут про Auth flow с expo router?
Не сильно углублялся, но вроде как я и описал выше. Но дело даже не в этом, условно если мне нужно будет показать какой-то другой стэк экранов, возникает проблема с их отображением
g
а где сам файл index.tsx ?
В этом файле я просто написал одну из страниц
g
Предположения лучше делать после доки
Я смотрел несколько видео уроков которые шли по доке
g
Не отрицаю, скорее всего где-то я очень сильно туплю
Rammonium
Может это я торможу, но разве не должно быть файлов index, loginscreen, profilepage ? У вас на скрине с именами файлов нет таких файлов
Alex
Я смотрел несколько видео уроков которые шли по доке
Можешь их смело закрывать, грубо говоря, там каждую неделю что-то меняют.
Бато
{filters.length && filters.map((item, index) => ( <View key={`order-filters-${index}`} style={{flexDirection: "row", justifyContent: "space-between", marginVertical: 10}}> <Text style={{width: "30%"}}>{item.category?.title}</Text> <Text style={{width: "10%", textAlign: "center"}}>{item.count}</Text> <View style={{flexDirection: "column", width: "60%"}}> {item.requirements ? item.requirements.map((req, i) => ( <View style={{flexDirection: "row", justifyContent: "space-between"}}> <Text style={{textAlign: "left", width: "30%"}}>{req.property?.title}</Text> <Text style={{textAlign: "center", width: "30%"}}>{req.type.toString()}</Text> <Text style={{textAlign: "center", width: "20%"}}>{req.value.toString()}</Text> <Text style={{textAlign: "right", width: "15%"}}>{req.dimension?.title}</Text> </View> )) : <View></View>} </View> </View> ))} У меня на этот код вылетает Console Error. Text strings must be rendered within a <Text> component, хотя вроде все строки обернул в этот компонент
Ali
https://github.com/CocoaPods/CocoaPods/issues/12671 Попробуйте здесь посмотреть
извеняюсь что более понятно не отправил но вчера и это тоже менял комп перезагрузил все сработал с вашим ответом СПАСИБО
Бато
где-то пробел скорее всего
Проверил - ничего такого нет. Вот я и удивляюсь, что за фигня?
Gena
Проверил - ничего такого нет. Вот я и удивляюсь, что за фигня?
Тут уже выработали лучший способ — убирай куски кода, пока не заработает, потом добавляй пока опять работать не перестанет, потом в цикле с кусками кода меньшего размера )))
Vitaly
Проверил - ничего такого нет. Вот я и удивляюсь, что за фигня?
скорее проблема в filters.length попробуй filters.length > 0 или вообще без через filters?.map
Raserad
скорее проблема в filters.length попробуй filters.length > 0 или вообще без через filters?.map
Не скорее всего а точно)) Пусть явно приведет его к boolean))
whyamsx
скорее проблема в filters.length попробуй filters.length > 0 или вообще без через filters?.map
если еще точнее то в && проблема, с нормальным тернарником даже length будет работать как задумано
Raserad
{filters.length && filters.map((item, index) => ( <View key={`order-filters-${index}`} style={{flexDirection: "row", justifyContent: "space-between", marginVertical: 10}}> <Text style={{width: "30%"}}>{item.category?.title}</Text> <Text style={{width: "10%", textAlign: "center"}}>{item.count}</Text> <View style={{flexDirection: "column", width: "60%"}}> {item.requirements ? item.requirements.map((req, i) => ( <View style={{flexDirection: "row", justifyContent: "space-between"}}> <Text style={{textAlign: "left", width: "30%"}}>{req.property?.title}</Text> <Text style={{textAlign: "center", width: "30%"}}>{req.type.toString()}</Text> <Text style={{textAlign: "center", width: "20%"}}>{req.value.toString()}</Text> <Text style={{textAlign: "right", width: "15%"}}>{req.dimension?.title}</Text> </View> )) : <View></View>} </View> </View> ))} У меня на этот код вылетает Console Error. Text strings must be rendered within a <Text> component, хотя вроде все строки обернул в этот компонент
А чтобы ты понимал почему тут проблема, ради интереса посмотри что выведет такая конструкция в js console.log(0 && “hello wolrd”) И тут явно не будет hello wolrd)) В твоем случае такой кейс отработает если массив пустой))
whyamsx
А чтобы ты понимал почему тут проблема, ради интереса посмотри что выведет такая конструкция в js console.log(0 && “hello wolrd”) И тут явно не будет hello wolrd)) В твоем случае такой кейс отработает если массив пустой))
в принципе всё как ты и описал выше, тернарка (и обычный if) приводят свои условия к булевому значению по умолчанию, в отличие от логического оператора &&
whyamsx
поэтому им лучше вообще поменьше пользоваться, чтобы таких фокусов не выкидывало)
а уже давно эту тему обглодали, как будто есть курс где целенаправленно учат таким граблям, на которые все еще наступают
Бато
А чтобы ты понимал почему тут проблема, ради интереса посмотри что выведет такая конструкция в js console.log(0 && “hello wolrd”) И тут явно не будет hello wolrd)) В твоем случае такой кейс отработает если массив пустой))
1. Массив пуст изначально, и по ходу дела будет добавляться (useState()) 2. Поменял на "классическую" тернарку, типа {filter.length ? <View>...</View> : <VIew></View} - ошибка осталась.
whyamsx
1. Массив пуст изначально, и по ходу дела будет добавляться (useState()) 2. Поменял на "классическую" тернарку, типа {filter.length ? <View>...</View> : <VIew></View} - ошибка осталась.
ну по ошибке у тебя какой-то текст пытается быть нарисован не в Text компоненте, это точно в том куске кода что ты скинул?
whyamsx
судя по нему там все тексты в текстовых компонентах