Archived

This forum has been archived. Please start a new discussion on GitHub.

Xcode 3.2.2 (SN 64b) + Ice 3.3.1 working?

Hi all,

I have seen that IceTouch 1.0 should work ok with the latest Iphone SDK.
That's not the case for me.
The Xcode plugin does not run the slice2objc compiler.
I have reinstalled Xcode, Ice 3.3.1 and IceTouch with no success.

In the target 'rules' tab i have tried to manually add a rule for the sourcecode.slice type, but when i select 'Slice' as the compiler, a 'Unknown compiler com.zeroc.compilers.slice' is displayed.

I have also followed Matthew's webcast for a simple C++ project, and the slice compiler is never called in any case.

Note: the .ice files do have the 'sourcecode.slice' type associated.

Any hints or additional specific configuration that i have missed?

Comments

  • benoit
    benoit Rennes, France
    Hi Christophe,

    Is the plugin correctly installed in your ~/Library/Application Support/Developer/Shared/Xcode/Plug-ins directory? If yes, can you try to run Xcode in 32 bit mode by checking the "Open in 32 Bit Mode" check box in the "Get Info" panel of the Xcode application?

    Cheers,
    Benoit.
  • Xcode problem solved with 32 bit mode

    Thank you Benoit,

    That was the missing part of the configuration.

    Regards
  • Additional information for SN 64bits

    For tracking purpose:

    Examples must be compiled using 32 bits mode if SN is started in 64 bits:

    make CFLAGS='-arch i386' CXXFLAGS='-arch i386'

    Appropriate flags must be set in Xcode build properties or you get link errors like:
    ld: warning: in /opt/IceTouch-1.0/lib/libIceObjC.dylib, file was built for i386 which is not the architecture being linked (ppc)
    Undefined symbols:
      "_ICEInternalLookupString", referenced from:
          -[DemoHello dispatch__:is:os:] in Hello.o
      ".objc_class_name_ICEUnknownUserException", referenced from:
          literal-pointer@__OBJC@__cls_refs@ICEUnknownUserException in Hello.o
      ".objc_class_name_ICEInitializationData", referenced from:
          literal-pointer@__OBJC@__cls_refs@ICEInitializationData in Server.o
      ".objc_class_name_ICEObject", referenced from:
          literal-pointer@__OBJC@__cls_refs@ICEObject in Hello.o
          .objc_class_name_DemoHello in Hello.o
      ".objc_class_name_ICEUtil", referenced from:
          literal-pointer@__OBJC@__cls_refs@ICEUtil in Server.o
      "_ICEInternalCheckModeAndSelector", referenced from:
          +[DemoHello shutdown___:current:is:os:] in Hello.o
          +[DemoHello sayHello___:current:is:os:] in Hello.o
      ".objc_class_name_ICELocalException", referenced from:
          literal-pointer@__OBJC@__cls_refs@ICELocalException in Server.o
      ".objc_class_name_ICEObjectPrx", referenced from:
          .objc_class_name_DemoHelloPrx in Hello.o
      ".objc_class_name_ICEUserException", referenced from:
          literal-pointer@__OBJC@__cls_refs@ICEUserException in Hello.o
      ".objc_class_name_ICEOperationNotExistException", referenced from:
          literal-pointer@__OBJC@__cls_refs@ICEOperationNotExistException in Hello.o
    ld: symbol(s) not found