swift - How to resolve compile error : "AttValue: " or ' expected" in xcode -
i have renamed project , after doing stuff , resolving errors , face following error in "takeeditcell.xib":
line 15: attvalue: " or ' expected line 15: attributes construct error line 15: couldn't find end of start tag tableviewcell
here code:
<?xml version="1.0" encoding="utf-8"?> <document type="com.apple.interfacebuilder3.cocoatouch.xib" version="3.0" toolsversion="12120" systemversion="16e195" targetruntime="ios.cocoatouch" propertyaccesscontrol="none" useautolayout="yes" usetraitcollections="yes" colormatched="yes"> <device id="ipad9_7" orientation="portrait"> <adaptation id="fullscreen"/> </device> <dependencies> <plugin identifier="com.apple.interfacebuilder.ibcocoatouchplugin" version="12088"/> <capability name="constraints layout margins" mintoolsversion="6.0"/> <capability name="constraints non-1.0 multipliers" mintoolsversion="5.1"/> <capability name="documents saved in xcode 8 format" mintoolsversion="8.0"/> </dependencies> <objects> <placeholder placeholderidentifier="ibfilesowner" id="-1" userlabel="file's owner"/> <placeholder placeholderidentifier="ibfirstresponder" id="-2" customclass="uiresponder"/> <tableviewcell clipssubviews="yes" contentmode="scaletofill" selectionstyle="default" indentationwidth="10" id="ws8-vg-jwz" customclass="takeeditcell" custommodule=“projxxx” custommoduleprovider="target"> <rect key="frame" x="0.0" y="0.0" width="375" height="360"/> <autoresizingmask key="autoresizingmask"/> <tableviewcellcontentview key="contentview" opaque="no" clipssubviews="yes" multipletouchenabled="yes" contentmode="center" tableviewcell="ws8-vg-jwz" id="utt-1e-lcr"> <rect key="frame" x="0.0" y="0.0" width="375" height="359.5"/> <autoresizingmask key="autoresizingmask"/> <subviews> <imageview userinteractionenabled="no" contentmode="scaletofill" horizontalhuggingpriority="251" verticalhuggingpriority="251" translatesautoresizingmaskintoconstraints="no" id="bmu-14-lcq"> <rect key="frame" x="16" y="24" width="150" height="144"/> </imageview> <imageview userinteractionenabled="no" contentmode="scaletofill" horizontalhuggingpriority="251" verticalhuggingpriority="251" translatesautoresizingmaskintoconstraints="no" id="qlg-3t-ci6"> <rect key="frame" x="209" y="24" width="150" height="144"/> </imageview> <imageview userinteractionenabled="no" contentmode="scaletofill" horizontalhuggingpriority="251" verticalhuggingpriority="251" translatesautoresizingmaskintoconstraints="no" id="gho-rc-34o"> <rect key="frame" x="16" y="184" width="150" height="143.5"/> </imageview> <imageview userinteractionenabled="no" contentmode="scaletofill" horizontalhuggingpriority="251" verticalhuggingpriority="251" translatesautoresizingmaskintoconstraints="no" id="bht-0j-apw"> <rect key="frame" x="209" y="184" width="150" height="143.5"/> </imageview> </subviews> <constraints> <constraint firstitem="bht-0j-apw" firstattribute="width" seconditem="bmu-14-lcq" secondattribute="width" id="3aa-8u-9wy"/> <constraint firstitem="bmu-14-lcq" firstattribute="height" seconditem="utt-1e-lcr" secondattribute="height" multiplier="4:10" id="6os-y2-kg2"/> <constraint firstitem="bmu-14-lcq" firstattribute="top" seconditem="utt-1e-lcr" secondattribute="topmargin" constant="16" id="bwb-xz-0p1"/> <constraint firstitem="gho-rc-34o" firstattribute="top" seconditem="bmu-14-lcq" secondattribute="bottom" constant="16" id="ca2-ew-pzc"/> <constraint firstitem="bht-0j-apw" firstattribute="height" seconditem="bmu-14-lcq" secondattribute="height" id="hhb-gn-yip"/> <constraint firstitem="qlg-3t-ci6" firstattribute="width" seconditem="bmu-14-lcq" secondattribute="width" id="i9l-s5-ara"/> <constraint firstitem="gho-rc-34o" firstattribute="height" seconditem="bmu-14-lcq" secondattribute="height" id="nr0-h1-odf"/> <constraint firstitem="bht-0j-apw" firstattribute="top" seconditem="qlg-3t-ci6" secondattribute="bottom" constant="16" id="sjs-eo-kxo"/> <constraint firstitem="qlg-3t-ci6" firstattribute="top" seconditem="utt-1e-lcr" secondattribute="topmargin" constant="16" id="t6v-sn-eya"/> <constraint firstitem="bmu-14-lcq" firstattribute="leading" seconditem="utt-1e-lcr" secondattribute="leadingmargin" constant="8" id="adx-cc-l9v"/> <constraint firstattribute="trailingmargin" seconditem="bht-0j-apw" secondattribute="trailing" constant="8" id="htv-ey-z5r"/> <constraint firstitem="gho-rc-34o" firstattribute="width" seconditem="bmu-14-lcq" secondattribute="width" id="lfp-06-sjf"/> <constraint firstitem="qlg-3t-ci6" firstattribute="height" seconditem="bmu-14-lcq" secondattribute="height" id="qla-mw-d06"/> <constraint firstattribute="trailingmargin" seconditem="qlg-3t-ci6" secondattribute="trailing" constant="8" id="t5u-t8-dw2"/> <constraint firstitem="gho-rc-34o" firstattribute="leading" seconditem="utt-1e-lcr" secondattribute="leadingmargin" constant="8" id="ufq-cz-ez1"/> <constraint firstitem="bmu-14-lcq" firstattribute="width" seconditem="utt-1e-lcr" secondattribute="width" multiplier="4:10" id="zxa-dd-wpx"/> </constraints> </tableviewcellcontentview> <connections> <outlet property="imageview1" destination="bmu-14-lcq" id="3te-4d-xyq"/> <outlet property="imageview2" destination="qlg-3t-ci6" id="hui-sf-bi6"/> <outlet property="imageview3" destination="gho-rc-34o" id="x98-ix-gir"/> <outlet property="imageview4" destination="bht-0j-apw" id="ywl-rb-vjt"/> </connections> <point key="canvaslocation" x="-73.5" y="4"/> </tableviewcell> </objects> </document>
it seems tableviewcell has been closed properly.
i tried replace "takeeditcell.xib" file original 1 backup didn't help, read other posts none of them helpful.
any advice appreciated.
your problem have smart quotes in .xib file there on line 15:
change:
<tableviewcell clipssubviews="yes" contentmode="scaletofill" selectionstyle="default" indentationwidth="10" id="ws8-vg-jwz" customclass="takeeditcell" custommodule=“projxxx” custommoduleprovider="target">
to:
<tableviewcell clipssubviews="yes" contentmode="scaletofill" selectionstyle="default" indentationwidth="10" id="ws8-vg-jwz" customclass="takeeditcell" custommodule="projxxx" custommoduleprovider="target">
that happened when manually edited .xib file using textedit or other non-ide app.
when editing .xib file's guts outside of xcode's interface builder functionality, can "open source code" in xcode clicking on .xib icon in left side of xcode window (where files , folders live) while holding down control key bring contextual menu.
Comments
Post a Comment