Несоответствие открывающего и конечного тегов - ошибка раскадровки Xcode

После конфликта слияния мне нужно было удалить некоторые символы, которые были добавлены в разные файлы, после того, как я это сделал, я получаю эту ошибку:

Строка 621: несоответствие открывающего и конечного тегов: строка 557 textView и подпредставления

Строка 557:

<textView clipsSubviews = "YES" multipleTouchEnabled = "YES" contentMode = "scaleToFill" textAlignment = "natural" translatesAutoresizingMaskIntoConstraints = "NO" id = "0L0-L4-EMJ" userLabel = "Job Text View" customClass = "RoundText" customModule = "Arvice" customModuleProvider = "target">

Строка 621:

</subviews>

Полный код для линий 557-621:

<textView clipsSubviews = "YES" multipleTouchEnabled = "YES" contentMode = "scaleToFill" textAlignment = "natural" translatesAutoresizingMaskIntoConstraints = "NO" id = "0L0-L4-EMJ" userLabel = "Job Text View" customClass = "RoundText" customModule = "Arvice" customModuleProvider = "target">
<rect key = "frame" x = "16" y = "372" width = "343" height = "225"/>
<textView clipsSubviews = "YES" multipleTouchEnabled = "YES" contentMode = "scaleToFill" ambiguous = "YES" textAlignment = "natural" translatesAutoresizingMaskIntoConstraints = "NO" id = "0L0-L4-EMJ" userLabel = "Job Text View" customClass = "RoundText" customModule = "Arvice" customModuleProvider = "target">
<rect key = "frame" x = "16" y = "128" width = "343" height = "325"/>
<color key = "backgroundColor" red = "0.43529411759999997" green = "0.4431372549" blue = "0.47450980390000003" alpha = "0.75296982020547942" colorSpace = "custom" customColorSpace = "sRGB"/>
<constraints>
<constraint firstAttribute = "height" constant = "225" id = "VOt-bF-NX1"/>
</constraints>
<color key = "textColor" red = "1" green = "0.96078431369999995" blue = "0.019607843140000001" alpha = "1" colorSpace = "custom" customColorSpace = "sRGB"/>
<fontDescription key = "fontDescription" name = "Brandish" family = "Brandish" pointSize = "18"/>
<textInputTraits key = "textInputTraits" autocapitalizationType = "sentences"/>
<userDefinedRuntimeAttributes>
<userDefinedRuntimeAttribute type = "color" keyPath = "borderColor">
<color key = "value" red = "1" green = "0.96078431369999995" blue = "0.019607843140000001" alpha = "1" colorSpace = "custom" customColorSpace = "sRGB"/>
</userDefinedRuntimeAttribute>
<userDefinedRuntimeAttribute type = "number" keyPath = "cornerRadius">
<real key = "value" value = "30"/>
</userDefinedRuntimeAttribute>
</userDefinedRuntimeAttributes>
</textView>
<button opaque = "NO" contentMode = "scaleToFill" contentHorizontalAlignment = "center" contentVerticalAlignment = "center" buttonType = "roundedRect" lineBreakMode = "middleTruncation" translatesAutoresizingMaskIntoConstraints = "NO" id = "grV-x2-o7U" customClass = "CustomizableButton" customModule = "Arvice" customModuleProvider = "target">
<rect key = "frame" x = "16" y = "611" width = "343" height = "40"/>
<rect key = "frame" x = "16" y = "392" width = "343" height = "30"/>
<color key = "backgroundColor" red = "0.43529411759999997" green = "0.4431372549" blue = "0.47450980390000003" alpha = "0.75296982020000003" colorSpace = "custom" customColorSpace = "sRGB"/>
<constraints>
<constraint firstAttribute = "height" constant = "40" id = "en1-xh-J1M"/>
</constraints>
<fontDescription key = "fontDescription" name = "Brandish" family = "Brandish" pointSize = "18"/>
<state key = "normal" title = "Add ?"/>
<userDefinedRuntimeAttributes>
<userDefinedRuntimeAttribute type = "number" keyPath = "cornerRadius">
<real key = "value" value = "15"/>
</userDefinedRuntimeAttribute>
</userDefinedRuntimeAttributes>
<connections>
<action selector = "postPressed:" destination = "ZTf-cm-rjD" eventType = "touchUpInside" id = "gEw-Za-Xl5"/>
</connections>
</button>
<view contentMode = "scaleToFill" ambiguous = "YES" translatesAutoresizingMaskIntoConstraints = "NO" id = "XAx-Sp-9p1" customClass = "GADBannerView">
<rect key = "frame" x = "0.0" y = "64" width = "375" height = "22"/>
<color key = "backgroundColor" white = "1" alpha = "1" colorSpace = "custom" customColorSpace = "genericGamma22GrayColorSpace"/>
</view>
<imageView userInteractionEnabled = "NO" contentMode = "scaleToFill" horizontalHuggingPriority = "251" verticalHuggingPriority = "251" misplaced = "YES" translatesAutoresizingMaskIntoConstraints = "NO" id = "GVF-qY-rRW">
<rect key = "frame" x = "99" y = "189" width = "176" height = "175"/>
</imageView>
<label opaque = "NO" userInteractionEnabled = "NO" contentMode = "left" horizontalHuggingPriority = "251" verticalHuggingPriority = "251" text = "" textAlignment = "natural" lineBreakMode = "tailTruncation" baselineAdjustment = "alignBaselines" adjustsFontSizeToFit = "NO" translatesAutoresizingMaskIntoConstraints = "NO" id = "tOi-sI-3OX" customClass = "RoundLabel" customModule = "Arvice" customModuleProvider = "target">
<rect key = "frame" x = "69" y = "136" width = "290" height = "45"/>
<color key = "backgroundColor" red = "0.43529411759999997" green = "0.4431372549" blue = "0.47450980390000003" alpha = "0.75296982020000003" colorSpace = "custom" customColorSpace = "sRGB"/>
<fontDescription key = "fontDescription" type = "system" pointSize = "17"/>
<nil key = "textColor"/>
<nil key = "highlightedColor"/>
<userDefinedRuntimeAttributes>
<userDefinedRuntimeAttribute type = "number" keyPath = "cornerRadius">
<real key = "value" value = "15"/>
</userDefinedRuntimeAttribute>
</userDefinedRuntimeAttributes>
</label>
<imageView userInteractionEnabled = "NO" contentMode = "scaleToFill" horizontalHuggingPriority = "251" verticalHuggingPriority = "251" translatesAutoresizingMaskIntoConstraints = "NO" id = "tfM-0s-pL1">
<rect key = "frame" x = "16" y = "136" width = "45" height = "45"/>
<constraints>
<constraint firstAttribute = "width" constant = "45" id = "Tnf-xp-PXp"/>
<constraint firstAttribute = "height" constant = "45" id = "vEc-bG-e1e"/>
</constraints>
</imageView>
</subviews>

Какой вопрос? Ваша раскадровка должна быть правильным XML-файлом, и любой конечный тег должен соответствовать соответствующему начальному тегу.

Serega 11.11.2018 18:35

Как я могу решить эту ошибку? Что мне добавить ?? Я попытался добавить <subviews> в строку 557, но ошибка такая же, только со строкой после, что означает, что ошибка отображается в строке 558 и 622, а затем ....

J. Doe 11.11.2018 18:37

Без полного кода раскадровки невозможно точно ответить на этот вопрос. Но я бы посоветовал, чтобы ваш тег textView не был закрыт между строками 557 и 621.

Serega 11.11.2018 18:38

Он закрыт в строке 576 - Если хотите, я могу добавить сюда полный код

J. Doe 11.11.2018 18:42

Если ХОТИТЕ, можете добавить сюда :)

Serega 11.11.2018 18:44

Готово - просто нужно время, чтобы отобразить его вот так, а не в одну строку :)

J. Doe 11.11.2018 18:48

Думаю, лучше восстановить раскадровку в предыдущей фиксации, чем применять к ней изменения с помощью XCode.

Ali Kıran 11.11.2018 19:13
Стоит ли изучать PHP в 2026-2027 годах?
Стоит ли изучать PHP в 2026-2027 годах?
Привет всем, сегодня я хочу высказать свои соображения по поводу вопроса, который я уже много раз получал в своем сообществе: "Стоит ли изучать PHP в...
Поведение ключевого слова "this" в стрелочной функции в сравнении с нормальной функцией
Поведение ключевого слова "this" в стрелочной функции в сравнении с нормальной функцией
В JavaScript одним из самых запутанных понятий является поведение ключевого слова "this" в стрелочной и обычной функциях.
Приемы CSS-макетирования - floats и Flexbox
Приемы CSS-макетирования - floats и Flexbox
Здравствуйте, друзья-студенты! Готовы совершенствовать свои навыки веб-дизайна? Сегодня в нашем путешествии мы рассмотрим приемы CSS-верстки - в...
Тестирование функциональных ngrx-эффектов в Angular 16 с помощью Jest
В системе управления состояниями ngrx, совместимой с Angular 16, появились функциональные эффекты. Это здорово и делает код определенно легче для...
Концепция локализации и ее применение в приложениях React ⚡️
Концепция локализации и ее применение в приложениях React ⚡️
Локализация - это процесс адаптации приложения к различным языкам и культурным требованиям. Это позволяет пользователям получить опыт, соответствующий...
Пользовательский скаляр GraphQL
Пользовательский скаляр GraphQL
Листовые узлы системы типов GraphQL называются скалярами. Достигнув скалярного типа, невозможно спуститься дальше по иерархии типов. Скалярный тип...
3
7
3 141
1
Перейти к ответу Данный вопрос помечен как решенный

Ответы 1

Ответ принят как подходящий

У вас есть два тега textView с одним и тем же id = "0L0-L4-EMJ", но только один конечный тег. Похоже, проблема слияния.

Другие вопросы по теме