Xcode 3.1: Compilieren für OS 10.3

Diese Seite verwendet Cookies. Durch die Nutzung unserer Seite erklären Sie sich damit einverstanden, dass wir Cookies setzen. Weitere Informationen

  • Xcode 3.1: Compilieren für OS 10.3

    So, ich hab mal wieder ein kleines Problem. Ich habe ein Programm geschrieben. Unter Debug kann ich prima Compilieren/Linken lassen, schalte ich Xcode jedoch auf Release werden unzählige Fehler geworfen. Ich hatte damit bisher aber auch noch nie Probleme, folglich hab ich mich noch nie mit dem Thema beschäftigt. Stell ich das SDK von 10.3.9 auf 10.4 um klappt auch alles Problemlos. Muss ich für 10.3.9 die Einstellungen in Xcode 3.1 irgendwie anpassen, sprich passt da das Template nicht fürs 10.3.9er SDK?
    [self setSignature:null];
    [[self postCount] increment];
  • Zum Edit: Das hatte ich geprüft und zuerst schien auch dies das Problem zu sein. Es stand auf Universal und es wurde auch der GCC 4.0 benutzt. Ich hab also auf Active Architecture umgestellt und den GCC 3.3 gewählt. Nun werden folgende Fehler geworfen (nur beim Release, nicht bei Debug)

    Quellcode

    1. Building target “SkieDMS” of project “SkieDMS” with configuration “Release” — (7 errors)
    2. cd /Users/michael/Documents/Programmierung/SkieDMS
    3. setenv MACOSX_DEPLOYMENT_TARGET 10.3
    4. setenv NEXT_ROOT /Developer/SDKs/MacOSX10.3.9.sdk
    5. /usr/bin/gcc-3.3 -x objective-c -arch i386 -fmessage-length=0 -pipe -Wno-trigraphs -fpascal-strings -fasm-blocks -Os -mdynamic-no-pic -Wreturn-type -Wunused-variable "-Wp,-header-mapfile,/Volumes/RAM Disk/SkieDMS.build/Release/SkieDMS.build/SkieDMS.hmap" "-F/Volumes/RAM Disk/Release" "-I/Volumes/RAM Disk/Release/include" "-I/Volumes/RAM Disk/SkieDMS.build/Release/SkieDMS.build/DerivedSources/i386" "-I/Volumes/RAM Disk/SkieDMS.build/Release/SkieDMS.build/DerivedSources" -DMAC_OS_X_VERSION_MIN_REQUIRED=1030 -fconstant-cfstrings -D__CONSTANT_CFSTRINGS__ -fobjc-exceptions -D__OBJC_EXCEPTIONS__ -isystem /Developer/SDKs/MacOSX10.3.9.sdk/usr/include/gcc/darwin/3.3 -isystem /Developer/SDKs/MacOSX10.3.9.sdk/usr/include -c /Users/michael/Documents/Programmierung/SkieDMS/main.m -o "/Volumes/RAM Disk/SkieDMS.build/Release/SkieDMS.build/Objects-normal/i386/main.o"
    6. gcc-3.3: installation problem, cannot exec `cc1obj': No such file or directory
    7. gcc-3.3: installation problem, cannot exec `cc1obj': No such file or directory
    8. gcc-3.3: installation problem, cannot exec `cc1obj': No such file or directory
    9. cd /Users/michael/Documents/Programmierung/SkieDMS
    10. setenv MACOSX_DEPLOYMENT_TARGET 10.3
    11. setenv NEXT_ROOT /Developer/SDKs/MacOSX10.3.9.sdk
    12. /usr/bin/gcc-3.3 -x objective-c -arch i386 -fmessage-length=0 -pipe -Wno-trigraphs -fpascal-strings -fasm-blocks -Os -mdynamic-no-pic -Wreturn-type -Wunused-variable "-Wp,-header-mapfile,/Volumes/RAM Disk/SkieDMS.build/Release/SkieDMS.build/SkieDMS.hmap" "-F/Volumes/RAM Disk/Release" "-I/Volumes/RAM Disk/Release/include" "-I/Volumes/RAM Disk/SkieDMS.build/Release/SkieDMS.build/DerivedSources/i386" "-I/Volumes/RAM Disk/SkieDMS.build/Release/SkieDMS.build/DerivedSources" -DMAC_OS_X_VERSION_MIN_REQUIRED=1030 -fconstant-cfstrings -D__CONSTANT_CFSTRINGS__ -fobjc-exceptions -D__OBJC_EXCEPTIONS__ -isystem /Developer/SDKs/MacOSX10.3.9.sdk/usr/include/gcc/darwin/3.3 -isystem /Developer/SDKs/MacOSX10.3.9.sdk/usr/include -c /Users/michael/Documents/Programmierung/SkieDMS/AppDelegate.m -o "/Volumes/RAM Disk/SkieDMS.build/Release/SkieDMS.build/Objects-normal/i386/AppDelegate.o"
    13. gcc-3.3: installation problem, cannot exec `cc1obj': No such file or directory
    14. gcc-3.3: installation problem, cannot exec `cc1obj': No such file or directory
    15. gcc-3.3: installation problem, cannot exec `cc1obj': No such file or directory
    16. cd /Users/michael/Documents/Programmierung/SkieDMS
    17. setenv MACOSX_DEPLOYMENT_TARGET 10.3
    18. setenv NEXT_ROOT /Developer/SDKs/MacOSX10.3.9.sdk
    19. /usr/bin/gcc-3.3 -x objective-c -arch i386 -fmessage-length=0 -pipe -Wno-trigraphs -fpascal-strings -fasm-blocks -Os -mdynamic-no-pic -Wreturn-type -Wunused-variable "-Wp,-header-mapfile,/Volumes/RAM Disk/SkieDMS.build/Release/SkieDMS.build/SkieDMS.hmap" "-F/Volumes/RAM Disk/Release" "-I/Volumes/RAM Disk/Release/include" "-I/Volumes/RAM Disk/SkieDMS.build/Release/SkieDMS.build/DerivedSources/i386" "-I/Volumes/RAM Disk/SkieDMS.build/Release/SkieDMS.build/DerivedSources" -DMAC_OS_X_VERSION_MIN_REQUIRED=1030 -fconstant-cfstrings -D__CONSTANT_CFSTRINGS__ -fobjc-exceptions -D__OBJC_EXCEPTIONS__ -isystem /Developer/SDKs/MacOSX10.3.9.sdk/usr/include/gcc/darwin/3.3 -isystem /Developer/SDKs/MacOSX10.3.9.sdk/usr/include -c /Users/michael/Documents/Programmierung/SkieDMS/MKCategoriesController.m -o "/Volumes/RAM Disk/SkieDMS.build/Release/SkieDMS.build/Objects-normal/i386/MKCategoriesController.o"
    20. gcc-3.3: installation problem, cannot exec `cc1obj': No such file or directory
    21. gcc-3.3: installation problem, cannot exec `cc1obj': No such file or directory
    22. gcc-3.3: installation problem, cannot exec `cc1obj': No such file or directory
    23. cd /Users/michael/Documents/Programmierung/SkieDMS
    24. setenv MACOSX_DEPLOYMENT_TARGET 10.3
    25. setenv NEXT_ROOT /Developer/SDKs/MacOSX10.3.9.sdk
    26. /usr/bin/gcc-3.3 -x objective-c -arch i386 -fmessage-length=0 -pipe -Wno-trigraphs -fpascal-strings -fasm-blocks -Os -mdynamic-no-pic -Wreturn-type -Wunused-variable "-Wp,-header-mapfile,/Volumes/RAM Disk/SkieDMS.build/Release/SkieDMS.build/SkieDMS.hmap" "-F/Volumes/RAM Disk/Release" "-I/Volumes/RAM Disk/Release/include" "-I/Volumes/RAM Disk/SkieDMS.build/Release/SkieDMS.build/DerivedSources/i386" "-I/Volumes/RAM Disk/SkieDMS.build/Release/SkieDMS.build/DerivedSources" -DMAC_OS_X_VERSION_MIN_REQUIRED=1030 -fconstant-cfstrings -D__CONSTANT_CFSTRINGS__ -fobjc-exceptions -D__OBJC_EXCEPTIONS__ -isystem /Developer/SDKs/MacOSX10.3.9.sdk/usr/include/gcc/darwin/3.3 -isystem /Developer/SDKs/MacOSX10.3.9.sdk/usr/include -c /Users/michael/Documents/Programmierung/SkieDMS/MKCategory.m -o "/Volumes/RAM Disk/SkieDMS.build/Release/SkieDMS.build/Objects-normal/i386/MKCategory.o"
    27. gcc-3.3: installation problem, cannot exec `cc1obj': No such file or directory
    28. gcc-3.3: installation problem, cannot exec `cc1obj': No such file or directory
    29. gcc-3.3: installation problem, cannot exec `cc1obj': No such file or directory
    30. cd /Users/michael/Documents/Programmierung/SkieDMS
    31. setenv MACOSX_DEPLOYMENT_TARGET 10.3
    32. setenv NEXT_ROOT /Developer/SDKs/MacOSX10.3.9.sdk
    33. /usr/bin/gcc-3.3 -x objective-c -arch i386 -fmessage-length=0 -pipe -Wno-trigraphs -fpascal-strings -fasm-blocks -Os -mdynamic-no-pic -Wreturn-type -Wunused-variable "-Wp,-header-mapfile,/Volumes/RAM Disk/SkieDMS.build/Release/SkieDMS.build/SkieDMS.hmap" "-F/Volumes/RAM Disk/Release" "-I/Volumes/RAM Disk/Release/include" "-I/Volumes/RAM Disk/SkieDMS.build/Release/SkieDMS.build/DerivedSources/i386" "-I/Volumes/RAM Disk/SkieDMS.build/Release/SkieDMS.build/DerivedSources" -DMAC_OS_X_VERSION_MIN_REQUIRED=1030 -fconstant-cfstrings -D__CONSTANT_CFSTRINGS__ -fobjc-exceptions -D__OBJC_EXCEPTIONS__ -isystem /Developer/SDKs/MacOSX10.3.9.sdk/usr/include/gcc/darwin/3.3 -isystem /Developer/SDKs/MacOSX10.3.9.sdk/usr/include -c /Users/michael/Documents/Programmierung/SkieDMS/MKEvent.m -o "/Volumes/RAM Disk/SkieDMS.build/Release/SkieDMS.build/Objects-normal/i386/MKEvent.o"
    34. gcc-3.3: installation problem, cannot exec `cc1obj': No such file or directory
    35. gcc-3.3: installation problem, cannot exec `cc1obj': No such file or directory
    36. gcc-3.3: installation problem, cannot exec `cc1obj': No such file or directory
    37. cd /Users/michael/Documents/Programmierung/SkieDMS
    38. setenv MACOSX_DEPLOYMENT_TARGET 10.3
    39. setenv NEXT_ROOT /Developer/SDKs/MacOSX10.3.9.sdk
    40. /usr/bin/gcc-3.3 -x objective-c -arch i386 -fmessage-length=0 -pipe -Wno-trigraphs -fpascal-strings -fasm-blocks -Os -mdynamic-no-pic -Wreturn-type -Wunused-variable "-Wp,-header-mapfile,/Volumes/RAM Disk/SkieDMS.build/Release/SkieDMS.build/SkieDMS.hmap" "-F/Volumes/RAM Disk/Release" "-I/Volumes/RAM Disk/Release/include" "-I/Volumes/RAM Disk/SkieDMS.build/Release/SkieDMS.build/DerivedSources/i386" "-I/Volumes/RAM Disk/SkieDMS.build/Release/SkieDMS.build/DerivedSources" -DMAC_OS_X_VERSION_MIN_REQUIRED=1030 -fconstant-cfstrings -D__CONSTANT_CFSTRINGS__ -fobjc-exceptions -D__OBJC_EXCEPTIONS__ -isystem /Developer/SDKs/MacOSX10.3.9.sdk/usr/include/gcc/darwin/3.3 -isystem /Developer/SDKs/MacOSX10.3.9.sdk/usr/include -c /Users/michael/Documents/Programmierung/SkieDMS/MKPathItem.m -o "/Volumes/RAM Disk/SkieDMS.build/Release/SkieDMS.build/Objects-normal/i386/MKPathItem.o"
    41. gcc-3.3: installation problem, cannot exec `cc1obj': No such file or directory
    42. gcc-3.3: installation problem, cannot exec `cc1obj': No such file or directory
    43. gcc-3.3: installation problem, cannot exec `cc1obj': No such file or directory
    44. cd /Users/michael/Documents/Programmierung/SkieDMS
    45. setenv MACOSX_DEPLOYMENT_TARGET 10.3
    46. setenv NEXT_ROOT /Developer/SDKs/MacOSX10.3.9.sdk
    47. /usr/bin/gcc-3.3 -x objective-c -arch i386 -fmessage-length=0 -pipe -Wno-trigraphs -fpascal-strings -fasm-blocks -Os -mdynamic-no-pic -Wreturn-type -Wunused-variable "-Wp,-header-mapfile,/Volumes/RAM Disk/SkieDMS.build/Release/SkieDMS.build/SkieDMS.hmap" "-F/Volumes/RAM Disk/Release" "-I/Volumes/RAM Disk/Release/include" "-I/Volumes/RAM Disk/SkieDMS.build/Release/SkieDMS.build/DerivedSources/i386" "-I/Volumes/RAM Disk/SkieDMS.build/Release/SkieDMS.build/DerivedSources" -DMAC_OS_X_VERSION_MIN_REQUIRED=1030 -fconstant-cfstrings -D__CONSTANT_CFSTRINGS__ -fobjc-exceptions -D__OBJC_EXCEPTIONS__ -isystem /Developer/SDKs/MacOSX10.3.9.sdk/usr/include/gcc/darwin/3.3 -isystem /Developer/SDKs/MacOSX10.3.9.sdk/usr/include -c /Users/michael/Documents/Programmierung/SkieDMS/MKToolbar.m -o "/Volumes/RAM Disk/SkieDMS.build/Release/SkieDMS.build/Objects-normal/i386/MKToolbar.o"
    48. gcc-3.3: installation problem, cannot exec `cc1obj': No such file or directory
    49. gcc-3.3: installation problem, cannot exec `cc1obj': No such file or directory
    50. gcc-3.3: installation problem, cannot exec `cc1obj': No such file or directory
    51. Build failed (7 errors)
    Alles anzeigen


    Ich muss also noch irgendwas umstellen nur, wie gesagt, ich hab da keine Ahnung von. Es scheint als will er immer noch gegen die Intel-Architektur kompilieren.
    [self setSignature:null];
    [[self postCount] increment];
  • Ich hab den Fehler endlich gefunden. Ist ne ganz tolle Sache gewesen. Hab noch so einiges ausprobiert und einiges an Zeit im Internet verbracht. Letzten Endes hätte ich mir das alles schenken können. Nachdem alles nichts half hab ich noch die Vodoo-Tricks ausprobiert. PRAM-Reset und Co waren auch erfolglos (war auch meine Erwartungshaltung dazu). Geholfen hat dann die Reparatur der Zugriffsrechte denn danach lies sich dann problemlos auch das Release compilieren, mit GCC 3.3 genauso wie mit GCC 4.0. Da war offenbar eine oder mehrere beteiligte Dateien nicht OK (hab mir den Log nicht genau angeschaut). Auf die Idee muss man erstmal kommen, dass es daran liegen könnte…
    [self setSignature:null];
    [[self postCount] increment];