1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432
|
{\rtf1\mac\ansicpg10000\cocoartf824\cocoasubrtf410
{\fonttbl\f0\fswiss\fcharset77 Helvetica-Bold;\f1\fswiss\fcharset77 Helvetica;\f2\fswiss\fcharset77 Helvetica-Oblique;
\f3\fswiss\fcharset77 Helvetica-BoldOblique;\f4\fnil\fcharset77 LucidaGrande-Bold;\f5\fnil\fcharset77 Monaco;
}
{\colortbl;\red255\green255\blue255;}
{\*\listtable{\list\listtemplateid1\listhybrid{\listlevel\levelnfc23\levelnfcn23\leveljc2\leveljcn2\levelfollow0\levelstartat1\levelspace360\levelindent0{\*\levelmarker \{disc\}}{\leveltext\leveltemplateid0\'02\'05.;}{\levelnumbers\'01;}}{\listname ;}\listid1}
{\list\listtemplateid2\listhybrid{\listlevel\levelnfc4\levelnfcn4\leveljc2\leveljcn2\levelfollow0\levelstartat1\levelspace360\levelindent0{\*\levelmarker \{lower-alpha\}.}{\leveltext\leveltemplateid0\'02\'05.;}{\levelnumbers\'01;}}{\listname ;}\listid2}
{\list\listtemplateid3\listhybrid{\listlevel\levelnfc4\levelnfcn4\leveljc2\leveljcn2\levelfollow0\levelstartat1\levelspace360\levelindent0{\*\levelmarker \{lower-alpha\}.}{\leveltext\leveltemplateid0\'02\'05.;}{\levelnumbers\'01;}}{\listname ;}\listid3}
{\list\listtemplateid4\listhybrid{\listlevel\levelnfc4\levelnfcn4\leveljc2\leveljcn2\levelfollow0\levelstartat1\levelspace360\levelindent0{\*\levelmarker \{lower-alpha\}.}{\leveltext\leveltemplateid0\'02\'05.;}{\levelnumbers\'01;}}{\listname ;}\listid4}
{\list\listtemplateid5\listhybrid{\listlevel\levelnfc23\levelnfcn23\leveljc2\leveljcn2\levelfollow0\levelstartat1\levelspace360\levelindent0{\*\levelmarker \{disc\}}{\leveltext\leveltemplateid0\'02\'05.;}{\levelnumbers\'01;}}{\listname ;}\listid5}
{\list\listtemplateid6\listhybrid{\listlevel\levelnfc23\levelnfcn23\leveljc2\leveljcn2\levelfollow0\levelstartat1\levelspace360\levelindent0{\*\levelmarker \{disc\}}{\leveltext\leveltemplateid0\'02\'05.;}{\levelnumbers\'01;}}{\listname ;}\listid6}
{\list\listtemplateid7\listhybrid{\listlevel\levelnfc23\levelnfcn23\leveljc2\leveljcn2\levelfollow0\levelstartat1\levelspace360\levelindent0{\*\levelmarker \{hyphen\}}{\leveltext\leveltemplateid0\'02\'05.;}{\levelnumbers\'01;}}{\listname ;}\listid7}
{\list\listtemplateid8\listhybrid{\listlevel\levelnfc23\levelnfcn23\leveljc2\leveljcn2\levelfollow0\levelstartat1\levelspace360\levelindent0{\*\levelmarker \{hyphen\}}{\leveltext\leveltemplateid0\'02\'05.;}{\levelnumbers\'01;}}{\listname ;}\listid8}
{\list\listtemplateid9\listhybrid{\listlevel\levelnfc23\levelnfcn23\leveljc2\leveljcn2\levelfollow0\levelstartat1\levelspace360\levelindent0{\*\levelmarker \{hyphen\}}{\leveltext\leveltemplateid0\'02\'05.;}{\levelnumbers\'01;}}{\listlevel\levelnfc23\levelnfcn23\leveljc2\leveljcn2\levelfollow0\levelstartat1\levelspace360\levelindent0{\*\levelmarker \{hyphen\}}{\leveltext\leveltemplateid1\'02\'05.;}{\levelnumbers\'01;}}{\listname ;}\listid9}
{\list\listtemplateid10\listhybrid{\listlevel\levelnfc23\levelnfcn23\leveljc2\leveljcn2\levelfollow0\levelstartat1\levelspace360\levelindent0{\*\levelmarker \{hyphen\}}{\leveltext\leveltemplateid0\'02\'05.;}{\levelnumbers\'01;}}{\listname ;}\listid10}
{\list\listtemplateid11\listhybrid{\listlevel\levelnfc23\levelnfcn23\leveljc2\leveljcn2\levelfollow0\levelstartat1\levelspace360\levelindent0{\*\levelmarker \{hyphen\}}{\leveltext\leveltemplateid0\'02\'05.;}{\levelnumbers\'01;}}{\listname ;}\listid11}
{\list\listtemplateid12\listhybrid{\listlevel\levelnfc23\levelnfcn23\leveljc2\leveljcn2\levelfollow0\levelstartat1\levelspace360\levelindent0{\*\levelmarker \{hyphen\}}{\leveltext\leveltemplateid0\'02\'05.;}{\levelnumbers\'01;}}{\listname ;}\listid12}
{\list\listtemplateid13\listhybrid{\listlevel\levelnfc23\levelnfcn23\leveljc2\leveljcn2\levelfollow0\levelstartat1\levelspace360\levelindent0{\*\levelmarker \{hyphen\}}{\leveltext\leveltemplateid0\'02\'05.;}{\levelnumbers\'01;}}{\listname ;}\listid13}
{\list\listtemplateid14\listhybrid{\listlevel\levelnfc23\levelnfcn23\leveljc2\leveljcn2\levelfollow0\levelstartat1\levelspace360\levelindent0{\*\levelmarker \{hyphen\}}{\leveltext\leveltemplateid0\'02\'05.;}{\levelnumbers\'01;}}{\listname ;}\listid14}}
{\*\listoverridetable{\listoverride\listid1\listoverridecount0\ls1}{\listoverride\listid2\listoverridecount0\ls2}{\listoverride\listid3\listoverridecount0\ls3}{\listoverride\listid4\listoverridecount0\ls4}{\listoverride\listid5\listoverridecount0\ls5}{\listoverride\listid6\listoverridecount0\ls6}{\listoverride\listid7\listoverridecount0\ls7}{\listoverride\listid8\listoverridecount0\ls8}{\listoverride\listid9\listoverridecount0\ls9}{\listoverride\listid10\listoverridecount0\ls10}{\listoverride\listid11\listoverridecount0\ls11}{\listoverride\listid12\listoverridecount0\ls12}{\listoverride\listid13\listoverridecount0\ls13}{\listoverride\listid14\listoverridecount0\ls14}}
\paperw11900\paperh16840\margl1440\margr1440\vieww17220\viewh13220\viewkind0
\pard\tx566\tx1133\tx1700\tx2267\tx2834\tx3401\tx3968\tx4535\tx5102\tx5669\tx6236\tx6803\ql\qnatural\pardirnatural
\f0\b\fs36 \cf0 \ul \ulc0 Free Pascal Xcode integration kit 2.2.0
\f1\b0 \ulnone \
\pard\tx566\tx1133\tx1700\tx2267\tx2834\tx3401\tx3968\tx4535\tx5102\tx5669\tx6236\tx6803\ql\qnatural\pardirnatural
\fs24 \cf0 \
\
\pard\tx566\tx1133\tx1700\tx2267\tx2834\tx3401\tx3968\tx4535\tx5102\tx5669\tx6236\tx6803\ql\qnatural\pardirnatural
\f0\b \cf0 Table of Contents
\f1\b0 \
\
\f0\b 1. Introduction\
2. How to use\
3. Customising\
4. Known problems\
5. Removing older templates\
6. Troubleshooting and FAQs
\f1\b0 \
\
\
\pard\tx566\tx1133\tx1700\tx2267\tx2834\tx3401\tx3968\tx4535\tx5102\tx5669\tx6236\tx6803\ql\qnatural\pardirnatural
\f0\b \cf0 \ul 1. Introduction\
\pard\tx566\tx1133\tx1700\tx2267\tx2834\tx3401\tx3968\tx4535\tx5102\tx5669\tx6236\tx6803\ql\qnatural\pardirnatural
\f1\b0 \cf0 \ulnone \
This package contains Xcode templates for use with the Free Pascal Compiler 2.2.0 and later (include 2.2.0).\
\
Two templates are included:\
\pard\tx220\tx720\tx1133\tx1700\tx2267\tx2834\tx3401\tx3968\tx4535\tx5102\tx5669\tx6236\tx6803\li720\fi-720\ql\qnatural\pardirnatural
\ls1\ilvl0\cf0 {\listtext \'a5 }
\f0\b FPC Carbon Application 2.2.0
\f1\b0 : sets up a Pascal Carbon application project with resources and nibs\
{\listtext \'a5 }
\f0\b FPC-C-C++ Carbon Application 2.2.0
\f1\b0 : sets up a Carbon application project with resources and nibs, and mixed Pascal, C and C++ source files\
{\listtext \'a5 }
\f0\b FPC Standard Tool 2.2.0
\f1\b0 : sets up a Pascal command line tool project\
\pard\tx566\tx1133\tx1700\tx2267\tx2834\tx3401\tx3968\tx4535\tx5102\tx5669\tx6236\tx6803\ql\qnatural\pardirnatural
\cf0 \
The projects have been tested with Xcode 2.4.1 and a prerelease version of Xcode 2.5, but should work with later versions. Previous Xcode versions are unsupported, and the templates will definitely not work with Xcode versions prior to 2.3. The templates work for both the PowerPC and Intel versions of the compiler.
\f0\b Creating a universal binary is currently only supported on Intel Macs.
\f1\b0 \
\
\
\pard\tx566\tx1133\tx1700\tx2267\tx2834\tx3401\tx3968\tx4535\tx5102\tx5669\tx6236\tx6803\ql\qnatural\pardirnatural
\f0\b \cf0 \ul 2. How to use
\f1\b0 \ulnone \
\
\pard\tx220\tx720\tx1133\tx1700\tx2267\tx2834\tx3401\tx3968\tx4535\tx5102\tx5669\tx6236\tx6803\li720\fi-720\ql\qnatural\pardirnatural
\ls2\ilvl0
\f0\b \cf0 {\listtext a. }
\f1\b0 Create a new Project\
\ls2\ilvl0
\f0\b {\listtext b. }
\f1\b0 Under the heading "Pascal", choose one of the templates mentioned above\
\ls2\ilvl0
\f0\b {\listtext c. }
\f1\b0 Once the project is created, either modify the template files, or remove them and add your own files (
\f0\b note:
\f1\b0 if you add main program with a different name, see the
\f2\i Customising
\f1\i0 section below on how to adapt the project)\
\pard\tx566\tx1133\tx1700\tx2267\tx2834\tx3401\tx3968\tx4535\tx5102\tx5669\tx6236\tx6803\ql\qnatural\pardirnatural
\cf0 \
When distributing your compiled program, you do
\f0\b not
\f1\b0 have to distribute the
\f2\i libfpc.a
\f1\i0 file which is generated as part of the build process. The needed parts are linked into your program.\
\
\pard\tx566\tx1133\tx1700\tx2267\tx2834\tx3401\tx3968\tx4535\tx5102\tx5669\tx6236\tx6803\ql\qnatural\pardirnatural
\f0\b \cf0 \ul \
3. Customising\
\pard\tx566\tx1133\tx1700\tx2267\tx2834\tx3401\tx3968\tx4535\tx5102\tx5669\tx6236\tx6803\ql\qnatural\pardirnatural
\f1\b0 \cf0 \ulnone \
\pard\tx566\tx1133\tx1700\tx2267\tx2834\tx3401\tx3968\tx4535\tx5102\tx5669\tx6236\tx6803\ql\qnatural\pardirnatural
\f0\b \cf0 Command line options:
\f1\b0 \
\
The template passes some default command line switches to the compiler. You can customise these if you want:
\f0\b \
\pard\tx566\tx1133\tx1700\tx2267\tx2834\tx3401\tx3968\tx4535\tx5102\tx5669\tx6236\tx6803\ql\qnatural\pardirnatural
\f1\b0 \cf0 \
\pard\tx220\tx720\tx1133\tx1700\tx2267\tx2834\tx3401\tx3968\tx4535\tx5102\tx5669\tx6236\tx6803\li720\fi-720\ql\qnatural\pardirnatural
\ls3\ilvl0
\f0\b \cf0 {\listtext a. }
\f1\b0 Double click on the project icon at the top of the file browser\
\ls3\ilvl0
\f0\b {\listtext b. }
\f1\b0 Go to the
\f2\i Build
\f1\i0 tab\
\ls3\ilvl0
\f0\b {\listtext c.
\f1\b0 }
\f0\b Select the configuration you want to edit (
\f3\i Debug
\f0\i0 ,
\f3\i Release
\f0\i0 or
\f3\i All Configurations
\f0\i0 ) from the top pop-up menu\
{\listtext d.
\f1\b0 }
\f0\b Select the
\f3\i Customized Settings
\f0\i0 collection from the second pop-up menu\
{\listtext e.
\f1\b0 }
\f0\b Changes to FPC_COMMON_OPTIONS
\f1\b0 are common for
\f2\i Debug
\f1\i0 and
\f2\i Release
\f1\i0 builds, and those to
\f0\b FPC_SPECIFIC_OPTIONS
\f1\b0 are configuration-specific (so don't edit this one when
\f2\i All Configurations
\f1\i0 is selected, or you will overwrite the options for both configurations with a single set -- this may e.g. remove debug information of the
\f2\i Debug
\f1\i0 build)\
\pard\tx566\tx1133\tx1700\tx2267\tx2834\tx3401\tx3968\tx4535\tx5102\tx5669\tx6236\tx6803\ql\qnatural\pardirnatural
\cf0 \
For an overview of all possible command line switches and what they do, have a look at the
\f2\i User's Manual
\f1\i0 (installed in
\f2\i /Developer/Documentation/Free Pascal Compiler
\f1\i0 ), Chapter 5.\
\
\pard\tx566\tx1133\tx1700\tx2267\tx2834\tx3401\tx3968\tx4535\tx5102\tx5669\tx6236\tx6803\ql\qnatural\pardirnatural
\f0\b \cf0 Main program file:
\f1\b0 \
\
The previous templates automatically detected the main program file. Due to issues with caching this information (and properly removing it again when cleaning the project or adding a new main program file), this is no longer done. Therefore, the main program file now has to be specified explicitly in the project settings.\
\
Should you change the name of the main program file, you can change it as follows (the same is in the previous templates)\
\
\pard\tx220\tx720\tx1133\tx1700\tx2267\tx2834\tx3401\tx3968\tx4535\tx5102\tx5669\tx6236\tx6803\li720\fi-720\ql\qnatural\pardirnatural
\ls4\ilvl0
\f0\b \cf0 {\listtext a. }
\f1\b0 Double click on the project icon at the top of the file browser\
\ls4\ilvl0
\f0\b {\listtext b. }
\f1\b0 Go to the
\f2\i Build
\f1\i0 tab\
\ls4\ilvl0
\f0\b {\listtext c.
\f1\b0 }
\f0\b Select the
\f3\i All Configurations
\f0\i0 from the top pop-up menu\
{\listtext d.
\f1\b0 }
\f0\b Select the
\f3\i Customized Settings
\f0\i0 collection from the second pop-up menu\
{\listtext e.
\f1\b0 }
\f0\b Change the FPC_MAIN_FILE setting
\f1\b0 to the name of your main program file, including the extension.\
\pard\tx566\tx1133\tx1700\tx2267\tx2834\tx3401\tx3968\tx4535\tx5102\tx5669\tx6236\tx6803\ql\qnatural\pardirnatural
\cf0 \
\
\pard\tx566\tx1133\tx1700\tx2267\tx2834\tx3401\tx3968\tx4535\tx5102\tx5669\tx6236\tx6803\ql\qnatural\pardirnatural
\f0\b \cf0 \ul 4. Known problems
\f1\b0 \ulnone \
\
\pard\tx220\tx720\tx1133\tx1700\tx2267\tx2834\tx3401\tx3968\tx4535\tx5102\tx5669\tx6236\tx6803\li720\fi-720\ql\qnatural\pardirnatural
\ls5\ilvl0
\f0\b \cf0 {\listtext \'a5 }Mixing C and Pascal:
\f1\b0 Due to the way we integrate with Xcode (because of various Xcode bugs), we have to turn off the generation of debug information in Xcode for the Pascal target (FPC still generates debugging info though). This means that if you mix C and Pascal in the same target, the C files will always be compiled without debugging information. You can solve this by compiling the C files in a separate target into a static or dynamic library and linking that library with your Pascal code. An example is shown in the
\f2\i FPC-C-C++ Carbon Application
\f1\i0 template.\
{\listtext \'a5 }"
\f0\b Menus" unit:
\f1\b0 Free Vision is a set of units compatible with Borland's Turbo Vision package. These units provide a way to create programs with some sort of GUI in a Terminal window (i.e., in text mode). One of these units is called "menus", which also happens to be the name of a unit in Apple's Universal Interfaces. To avoid conflicts, we exclude the Free Vision units from Xcode projects. A similar problem may occur if one of your units is called "memory"; the easiest solution is to rename any such units.\
{\listtext \'a5 }
\f0\b Viewing global variables in the Xcode debugger:
\f1\b0 the globals browser often does not work. You can view global variables instead by choosing
\f3\i\b Debug
\f4\i0 \uc0\u8594
\f3\i Tools
\f4\i0 \uc0\u8594
\f3\i Expression...
\f2\b0
\f1\i0 and then typing the name of the global variable\
{\listtext \'a5 }
\f0\b Problems with
\f3\i View Value As\'c9
\f0\i0 and
\f3\i View Memory\'c9
\f0\i0 :
\f1\b0 Xcode assumes that the underlying debugger (gdb) is in C mode at all times. When using the aforementioned commands, it therefore sends C-expressions to the debugger, which it doesn't understand when inside Pascal code (because then it expects Pascal expressions). A tedious workaround in case you need this functionality at some point is to choose
\f3\i\b Debug
\f4\i0 \uc0\u8594
\f3\i Console Log
\f1\i0\b0 , and then type
\f2\i set lang c
\f1\i0 on the gdb prompt, followed by return/enter. To switch the debugger back type
\f2\i set lang auto
\f1\i0 .\
{\listtext \'a5 }
\f0\b Problems with view strings and non-zero based arrays in the debugger:
\f1\b0 Xcode does not appear to ask the debugger to display strings and arrays, but has its own display routines for these data structures. It does not have any knowledge of Pascal strings, nor of non-zero based arrays (these do not exist in C), and will therefore display all arrays as if they were zero-based, and Pascal strings as a record (in which the nested array is displayed incorrectly because of the array problem). You can again work around this by going to the gdb console as in the previous item and typing
\f2\i p string_variable
\f1\i0 resp.
\f2\i p array_variable
\f1\i0 .\
\pard\tx566\tx1133\tx1700\tx2267\tx2834\tx3401\tx3968\tx4535\tx5102\tx5669\tx6236\tx6803\ql\qnatural\pardirnatural
\cf0 \
\
\pard\tx566\tx1133\tx1700\tx2267\tx2834\tx3401\tx3968\tx4535\tx5102\tx5669\tx6236\tx6803\ql\qnatural\pardirnatural
\f0\b \cf0 \ul 5. Removing older templates
\f1\b0 \ulnone \
\
Depending on which versions of FPC you previously installed, and which extra templates you installed, you may end up with a lot of (potentially outdated) Pascal project templates in Xcode. All these templates can be found in
\f2\i /Library/Application Support/Apple/Developer Tools/Project Templates/Pascal
\f1\i0 \
\
Below, you can find a list of some templates you may find there, where they come from, and in what situations they may be usable:\
\
\pard\tx220\tx720\tx1133\tx1700\tx2267\tx2834\tx3401\tx3968\tx4535\tx5102\tx5669\tx6236\tx6803\li720\fi-720\ql\qnatural\pardirnatural
\ls6\ilvl0\cf0 {\listtext \'a5 }
\f2\i FPC Carbon App calling C and vice versa
\f1\i0 : template by Erling Johansen on which
\f0\b FPC-C-C++ Carbon Application 2.2.0
\f1\b0 is based, still works with FPC 2.1.5\
{\listtext \'a5 }
\f2\i FPC Carbon App hello world
\f1\i0 : template by Erling Johansen, still works with FPC 2.1.5.
\f0\b FPC Carbon Application 2.2.0
\f1\b0 is similar, but uses the Pascal sources and resources from the Carbon project that was shipped with previous FPC versions\
{\listtext \'a5 }
\f2\i FPC Carbon Application
\f1\i0 and
\f2\i FPC Standard Tool
\f1\i0 : FPC 2.0.4 templates for a Pascal Carbon application resp Standard Tool. They still work as well with FPC 2.2.0 as they did with FPC 2.0.4, but contain some errors (see
\f2\i Version History
\f1\i0 section below)\
{\listtext \'a5 }
\f2\i Free Pascal Tool (XCode 2.1+)
\f1\i0 and
\f2\i Xcode221 Pascal Carbon template
\f1\i0 : precursors of the FPC 2.0.4 templates. May or may not work with 2.2.0, but definitely not recommended.\
\pard\tx220\tx720\tx1133\tx1700\tx2267\tx2834\tx3401\tx3968\tx4535\tx5102\tx5669\tx6236\tx6803\li720\fi-720\ql\qnatural\pardirnatural
\ls6\ilvl0
\f2\i \cf0 {\listtext \'a5 }Pascal Carbon Application
\f1\i0 ,
\f2\i Pascal CGI
\f1\i0 , and
\f2\i Pascal Tool
\f1\i0 : Xcode 1.x templates, no longer work with current Xcode versions.\
\pard\tx566\tx1133\tx1700\tx2267\tx2834\tx3401\tx3968\tx4535\tx5102\tx5669\tx6236\tx6803\ql\qnatural\pardirnatural
\cf0 \
\
\pard\tx566\tx1133\tx1700\tx2267\tx2834\tx3401\tx3968\tx4535\tx5102\tx5669\tx6236\tx6803\ql\qnatural\pardirnatural
\f0\b \cf0 \ul 6. Troubleshooting and FAQs\
\pard\tx566\tx1133\tx1700\tx2267\tx2834\tx3401\tx3968\tx4535\tx5102\tx5669\tx6236\tx6803\ql\qnatural\pardirnatural
\f1\b0 \cf0 \ulnone \
\pard\tx566\tx1133\tx1700\tx2267\tx2834\tx3401\tx3968\tx4535\tx5102\tx5669\tx6236\tx6803\ql\qnatural\pardirnatural
\f0\b \cf0 1) Q: What can I do when getting the following error after building:\
\
\pard\tx560\tx1120\tx1680\tx2240\tx2800\tx3360\tx3920\tx4480\tx5040\tx5600\tx6160\tx6720\ql\qnatural\pardirnatural
\f5\b0\fs20 \cf0 powerpc-apple-darwin8-gcc-4.0.1: warning: '-x assembler-with-cpp' after last input file has no effect\
powerpc-apple-darwin8-gcc-4.0.1: no input files\
powerpc-apple-darwin8-gcc-4.0 failed with exit code 1\
\pard\tx566\tx1133\tx1700\tx2267\tx2834\tx3401\tx3968\tx4535\tx5102\tx5669\tx6236\tx6803\ql\qnatural\pardirnatural
\f1\fs24 \cf0 \
\pard\tx566\tx1133\tx1700\tx2267\tx2834\tx3401\tx3968\tx4535\tx5102\tx5669\tx6236\tx6803\ql\qnatural\pardirnatural
\f0\b \cf0 \'a5 A:
\f1\b0 Short answer: click on the disclosure triangle next to the Targets group, then next to the target with the same name as your project, and then next to its "Compile Sources" phase. Remove any sources from that phase which are not actually used by your program.\
\
Long answer: the projects work in two phases. First, FPC is used to compile all sources from Pascal to assembler code. Next, Xcode calls gcc to assemble the resulting files, links them together and builds the application bundle (Xcode refuses to link if we let FPC directly generates object code). If you remove a unit from the uses clause of your program, FPC will no longer compile this unit. Subsequently, there will be no assembler code for gcc to assemble, and Xcode will pass an "empty filename" to gcc, causing the error displayed above.\
\
\
\pard\tx566\tx1133\tx1700\tx2267\tx2834\tx3401\tx3968\tx4535\tx5102\tx5669\tx6236\tx6803\ql\qnatural\pardirnatural
\f0\b \cf0 \ul 7. Contact information
\f1\b0 \ulnone \
\
For help with Mac Pascal programming (and generic Pascal programming):\
{\field{\*\fldinst{HYPERLINK "http://www.pascal-central.com/maillist.html"}}{\fldrslt http://www.pascal-central.com/maillist.html}}\
\
For FPC-specific questions (and help with generic Pascal programming):\
{\field{\*\fldinst{HYPERLINK "http://lists.freepascal.org/mailman/listinfo/fpc-pascal"}}{\fldrslt http://lists.freepascal.org/mailman/listinfo/fpc-pascal}}\
\
Questions or remarks regarding the templates themselves can be sent to either list.\
\
\
\f0\b \ul 8. Version history
\f1\b0 \
\
\pard\tx566\tx1133\tx1700\tx2267\tx2834\tx3401\tx3968\tx4535\tx5102\tx5669\tx6236\tx6803\ql\qnatural\pardirnatural
\f0\b \cf0 \ulnone \'a5 2.2.0
\f1\b0 (28 August 2007):\
\pard\tx220\tx720\tx1133\tx1700\tx2267\tx2834\tx3401\tx3968\tx4535\tx5102\tx5669\tx6236\tx6803\li720\fi-720\ql\qnatural\pardirnatural
\ls7\ilvl0\cf0 {\listtext \uc0\u8259 }Run ranlib on the generated libfpc*.a libraries to avoid errors with certain versions of ld later on (and it is the correct thing to do)\
{\listtext \uc0\u8259 }Project names now can contain spaces\
{\listtext \uc0\u8259 }Added section with common questions (one for now)\ul \
\pard\tx566\tx1133\tx1700\tx2267\tx2834\tx3401\tx3968\tx4535\tx5102\tx5669\tx6236\tx6803\ql\qnatural\pardirnatural
\cf0 \
\pard\tx566\tx1133\tx1700\tx2267\tx2834\tx3401\tx3968\tx4535\tx5102\tx5669\tx6236\tx6803\ql\qnatural\pardirnatural
\f0\b \cf0 \ulnone \'a5 2.1.4
\f1\b0 (9 May 2007):\
\pard\tx220\tx720\tx1133\tx1700\tx2267\tx2834\tx3401\tx3968\tx4535\tx5102\tx5669\tx6236\tx6803\li720\fi-720\ql\qnatural\pardirnatural
\ls8\ilvl0\cf0 {\listtext \uc0\u8259 }First public release\ul \
\pard\tx566\tx1133\tx1700\tx2267\tx2834\tx3401\tx3968\tx4535\tx5102\tx5669\tx6236\tx6803\ql\qnatural\pardirnatural
\cf0 \
\pard\tx566\tx1133\tx1700\tx2267\tx2834\tx3401\tx3968\tx4535\tx5102\tx5669\tx6236\tx6803\ql\qnatural\pardirnatural
\f0\b \cf0 \ulnone \'a5 2.1.2
\f1\b0 (2 May 2007):\
\pard\tx220\tx720\tx1133\tx1700\tx2267\tx2834\tx3401\tx3968\tx4535\tx5102\tx5669\tx6236\tx6803\li720\fi-720\ql\qnatural\pardirnatural
\ls9\ilvl0\cf0 {\listtext \uc0\u8259 }New templates based on improved versions submitted by Erling Johansen:\
\pard\tx940\tx1440\tx1700\tx2267\tx2834\tx3401\tx3968\tx4535\tx5102\tx5669\tx6236\tx6803\li1440\fi-1440\ql\qnatural\pardirnatural
\ls9\ilvl1\cf0 {\listtext \uc0\u8259 }Cleaning no longer leaves stray caching information (with the downside that the main program file can no longer be auto-detected)\
{\listtext \uc0\u8259 }Building is faster if there are a lot of files in the project (with the downside that unit search paths can no longer be auto-detected)\
{\listtext \uc0\u8259 }Compilation and assembling can no longer sometimes occur in parallel; this used to occasionally result in new builds not containing all latest changes\
\pard\tx220\tx720\tx1133\tx1700\tx2267\tx2834\tx3401\tx3968\tx4535\tx5102\tx5669\tx6236\tx6803\li720\fi-720\ql\qnatural\pardirnatural
\ls9\ilvl0\cf0 {\listtext \uc0\u8259 }Several new notes about Xcode problems when debugging Pascal programs\
{\listtext \uc0\u8259 }Support in the templates for PowerPC64 and x86_64 (not yet in any released compiler, so compiling for either of these will
\f3\i\b not
\f1\i0\b0 yet work)\
{\listtext \uc0\u8259 }Notes about older project templates\
\pard\tx566\tx1133\tx1700\tx2267\tx2834\tx3401\tx3968\tx4535\tx5102\tx5669\tx6236\tx6803\ql\qnatural\pardirnatural
\f0\b \cf0 \
\'a5 2.0.4
\f1\b0 (22 August 2006):\
\pard\tx220\tx720\tx1133\tx1700\tx2267\tx2834\tx3401\tx3968\tx4535\tx5102\tx5669\tx6236\tx6803\li720\fi-720\ql\qnatural\pardirnatural
\ls10\ilvl0\cf0 {\listtext \uc0\u8259 }Fixed problems with spaces in directory names when creating the fpcrtl.a library (thanks to Ingemar Ragnemalm for discovering this issue)\
{\listtext \uc0\u8259 }Fixed encoding of
\f2\i English.lproj/InfoList.plist
\f1\i0 (set to UTF-16 now) (thanks to Dale Jensen for noting this)
\f2\i \
\pard\tx566\tx1133\tx1700\tx2267\tx2834\tx3401\tx3968\tx4535\tx5102\tx5669\tx6236\tx6803\ql\qnatural\pardirnatural
\f0\i0\b \cf0 \
\'a5 2.0.4-rc3
\f1\b0 (29 July 2006):
\f0\b \
\pard\tx220\tx720\tx1133\tx1700\tx2267\tx2834\tx3401\tx3968\tx4535\tx5102\tx5669\tx6236\tx6803\li720\fi-720\ql\qnatural\pardirnatural
\ls11\ilvl0
\f1\b0 \cf0 {\listtext \uc0\u8259 }Fixed creating a universal version of the fpcrtl target
\f2\i \
\ls11\ilvl0
\f1\i0 {\listtext \uc0\u8259 }Exclude Free Vision when building the fpcrtl target because its "menus" unit conflicts with the menus unit of the Universal Interfaces (thanks to Dale Jensen for discovering both bugs)\
{\listtext \uc0\u8259 }Note about the "menus" unit problem in the "Known problems" section\
{\listtext \uc0\u8259 }Tested with Xcode 2.1\
\pard\tx566\tx1133\tx1700\tx2267\tx2834\tx3401\tx3968\tx4535\tx5102\tx5669\tx6236\tx6803\ql\qnatural\pardirnatural
\f0\b \cf0 \
\'a5 2.0.4-rc2
\f1\b0 (19 July 2006):
\f0\b \
\pard\tx220\tx720\tx1133\tx1700\tx2267\tx2834\tx3401\tx3968\tx4535\tx5102\tx5669\tx6236\tx6803\li720\fi-720\ql\qnatural\pardirnatural
\ls12\ilvl0\cf0 {\listtext
\f1\b0 \uc0\u8259
\f0\b }
\f1\b0 Ignore include files ending in
\f2\i .inc\
\ls12\ilvl0
\f1\i0 {\listtext \uc0\u8259 }Print the full path name of files in error messages so Xcode can always find them\
{\listtext \uc0\u8259 }Support for manually specifying the main program file (FPC_MAIN_FILE)\
\pard\tx566\tx1133\tx1700\tx2267\tx2834\tx3401\tx3968\tx4535\tx5102\tx5669\tx6236\tx6803\ql\qnatural\pardirnatural
\f0\b \cf0 \
\'a5 2.0.4-rc1
\f1\b0 (9 July 2006):
\f0\b \
\pard\tx220\tx720\tx1133\tx1700\tx2267\tx2834\tx3401\tx3968\tx4535\tx5102\tx5669\tx6236\tx6803\li720\fi-720\ql\qnatural\pardirnatural
\ls13\ilvl0\cf0 {\listtext
\f1\b0 \uc0\u8259
\f0\b }
\f1\b0 Completely rewritten version by Jonas Maebe for compatibility with newer Xcode versions\
\pard\tx566\tx1133\tx1700\tx2267\tx2834\tx3401\tx3968\tx4535\tx5102\tx5669\tx6236\tx6803\ql\qnatural\pardirnatural
\f0\b \cf0 \
\'a5 1.1
\f1\b0 (23 May 2005)\
\pard\tx220\tx720\tx1133\tx1700\tx2267\tx2834\tx3401\tx3968\tx4535\tx5102\tx5669\tx6236\tx6803\li720\fi-720\ql\qnatural\pardirnatural
\ls14\ilvl0
\f0\b \cf0 {\listtext
\f1\b0 \uc0\u8259
\f0\b }
\f1\b0 Initial public version by Dr. Rolf Jansen for Xcode 1.1
\f0\b \
}
|