Results 1 to 6 of 6

Thread: Ice Touch 1.2 and XCode 4 best practice

  1. #1
    ArturFriesen is offline Registered User
    Name: Artur Friesen
    Organization: personal
    Project: small game with push-support
    Join Date
    Jan 2012
    Posts
    12

    Question Ice Touch 1.2 and XCode 4 best practice

    Hi,

    i have 2 questions:

    1) im wondering if there is a clean way to add the additional SDKs to the Build-Settings?

    I tried to add the different SDKs to the Configurations "Debug" and "Release"...
    but this doesn't work for me. If i switch from Simulator to Device i get the following Error:
    error: Composite SDK failed: The base SDK uses platform 'iphonesimulator', but an additional SDK uses platform 'iphoneos'. All SDKs must use the same platform (PLATFORM_NAME).

    I also tried to add a different Target... not working.

    At the moment I always have to switch the SDK depend on where i want to test my app???

    2) If I change the iOS Application Target identifier (xxx.xxx.appname) to something different than the standard ${PRODUCT_NAME:rfc1034identifier}, the auto-generated files are not generated anymore...

  2. #2
    xdm's Avatar
    xdm
    xdm is online now ZeroC Staff
    Name: Jose Gutierrez de la Concha
    Organization: ZeroC, Inc.
    Project: Ice Developer
    Join Date
    Sep 2003
    Location
    La Coruņa, Spain
    Posts
    588
    1) im wondering if there is a clean way to add the additional SDKs to the Build-Settings?

    I tried to add the different SDKs to the Configurations "Debug" and "Release"...
    but this doesn't work for me. If i switch from Simulator to Device i get the following Error:
    error: Composite SDK failed: The base SDK uses platform 'iphonesimulator', but an additional SDK uses platform 'iphoneos'. All SDKs must use the same platform (PLATFORM_NAME).

    I also tried to add a different Target... not working.
    Have a look at the demos provided with IceTouch, the demos use $(PLATFORM_NAME)

    Code:
    /Developer/SDKs/IceTouch-1.2/$(PLATFORM_NAME).sdk
    If I change the iOS Application Target identifier (xxx.xxx.appname) to something different than the standard ${PRODUCT_NAME:rfc1034identifier}, the auto-generated files are not generated anymore...
    I cannot reproduce this issue:
    i create a new iOS application project
    add IceTouch to additional SDKs
    update Bundle identifier to, "com.zeroc.TestT"
    Product Build, and i see slice2objc being run.

    When you build is there any error processing the Info.plist file? you can review that in Xcode Log Navigator. The slice2objc command should run after Info.plist file is processed, and you should see it in the build log, in my case i see that in Log Navigator

    Code:
    ProcessInfoPlistFile /Users/jose/Library/Developer/Xcode/DerivedData/test-ezhrkqlxuncsrsbgpmemkwimieza/Build/Products/Debug-iphonesimulator/test.app/Info.plist test/test-Info.plist
        cd /Users/jose/Documents/test
        setenv PATH "/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Developer/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin"
        builtin-infoPlistUtility test/test-Info.plist -genpkginfo /Users/jose/Library/Developer/Xcode/DerivedData/test-ezhrkqlxuncsrsbgpmemkwimieza/Build/Products/Debug-iphonesimulator/test.app/PkgInfo -expandbuildsettings -format binary -platform iphonesimulator -o /Users/jose/Library/Developer/Xcode/DerivedData/test-ezhrkqlxuncsrsbgpmemkwimieza/Build/Products/Debug-iphonesimulator/test.app/Info.plist
    
    slice2objc test/Test.ice
        cd /Users/jose/Documents/test
        setenv PATH "/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Developer/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin"
        /Developer/SDKs/IceTouch-1.2/bin/slice2objc --output-dir /Users/jose/Library/Developer/Xcode/DerivedData/test-ezhrkqlxuncsrsbgpmemkwimieza/Build/Intermediates/test.build/Debug-iphonesimulator/test.build/DerivedSources --include-dir "" -I/Developer/SDKs/IceTouch-1.2/slice /Users/jose/Documents/test/test/Test.ice

  3. #3
    ArturFriesen is offline Registered User
    Name: Artur Friesen
    Organization: personal
    Project: small game with push-support
    Join Date
    Jan 2012
    Posts
    12
    Quote Originally Posted by xdm View Post
    Have a look at the demos provided with IceTouch, the demos use $(PLATFORM_NAME)

    Code:
    /Developer/SDKs/IceTouch-1.2/$(PLATFORM_NAME).sdk


    I cannot reproduce this issue:
    i create a new iOS application project
    add IceTouch to additional SDKs
    update Bundle identifier to, "com.zeroc.TestT"
    Product Build, and i see slice2objc being run.

    When you build is there any error processing the Info.plist file? you can review that in Xcode Log Navigator. The slice2objc command should run after Info.plist file is processed, and you should see it in the build log, in my case i see that in Log Navigator

    Code:
    ProcessInfoPlistFile /Users/jose/Library/Developer/Xcode/DerivedData/test-ezhrkqlxuncsrsbgpmemkwimieza/Build/Products/Debug-iphonesimulator/test.app/Info.plist test/test-Info.plist
        cd /Users/jose/Documents/test
        setenv PATH "/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Developer/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin"
        builtin-infoPlistUtility test/test-Info.plist -genpkginfo /Users/jose/Library/Developer/Xcode/DerivedData/test-ezhrkqlxuncsrsbgpmemkwimieza/Build/Products/Debug-iphonesimulator/test.app/PkgInfo -expandbuildsettings -format binary -platform iphonesimulator -o /Users/jose/Library/Developer/Xcode/DerivedData/test-ezhrkqlxuncsrsbgpmemkwimieza/Build/Products/Debug-iphonesimulator/test.app/Info.plist
    
    slice2objc test/Test.ice
        cd /Users/jose/Documents/test
        setenv PATH "/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Developer/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin"
        /Developer/SDKs/IceTouch-1.2/bin/slice2objc --output-dir /Users/jose/Library/Developer/Xcode/DerivedData/test-ezhrkqlxuncsrsbgpmemkwimieza/Build/Intermediates/test.build/Debug-iphonesimulator/test.build/DerivedSources --include-dir "" -I/Developer/SDKs/IceTouch-1.2/slice /Users/jose/Documents/test/test/Test.ice
    /Developer/SDKs/IceTouch-1.2/$(PLATFORM_NAME).sdk

    Sometimes things are to easy!
    Thanks! That works!

    I cant reproduce the second point anymore...
    Thanks for your help!

  4. #4
    ArturFriesen is offline Registered User
    Name: Artur Friesen
    Organization: personal
    Project: small game with push-support
    Join Date
    Jan 2012
    Posts
    12
    Quote Originally Posted by ArturFriesen View Post
    /Developer/SDKs/IceTouch-1.2/$(PLATFORM_NAME).sdk

    Sometimes things are to easy!
    Thanks! That works!

    I cant reproduce the second point anymore...
    Thanks for your help!
    Cheered too soon..

    Its only working with the Simulator. If i try to build with Device. I get the following error:

    ld: library not found for -lIceObjC
    Command /Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/clang failed with exit code 1


    I also get this error with the provided examples..

  5. #5
    xdm's Avatar
    xdm
    xdm is online now ZeroC Staff
    Name: Jose Gutierrez de la Concha
    Organization: ZeroC, Inc.
    Project: Ice Developer
    Join Date
    Sep 2003
    Location
    La Coruņa, Spain
    Posts
    588
    I also get this error with the provided examples..
    That is odd, seems like something is wrong with your setup.

    Can you check that you have the iphoneos.sdk libraries installed? maybe you remove it accidentally
    Code:
    ls /Developer/SDKs/IceTouch-1.2/iphoneos.sdk/usr/local/lib/
    libGlacier2ObjC.a	libIceObjC.a

  6. #6
    ArturFriesen is offline Registered User
    Name: Artur Friesen
    Organization: personal
    Project: small game with push-support
    Join Date
    Jan 2012
    Posts
    12
    Quote Originally Posted by xdm View Post
    That is odd, seems like something is wrong with your setup.

    Can you check that you have the iphoneos.sdk libraries installed? maybe you remove it accidentally
    Code:
    ls /Developer/SDKs/IceTouch-1.2/iphoneos.sdk/usr/local/lib/
    libGlacier2ObjC.a	libIceObjC.a
    The libraries where installed. But there was another problem with the installation. I dont know what went wrong. But after reinstalling the ICE-Plugin, its working fine.

    I can remember, that i did something like this: export PATH=/opt/IceTouch-1.2/bin:$PATH
    To generate the Slice-Files with slice2objc more comfortable. Maybe this broke my installation?

    Thanks for your help xdm

    PS: The new installation doesn't solve my problem with the static library

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Ice touch 1.1.0 xcode plugin and xcode4
    By abigagli in forum Help Center
    Replies: 0
    Last Post: 02-23-2011, 05:58 PM
  2. how to get ice working with xcode 3.2.3 ?
    By nico in forum Help Center
    Replies: 6
    Last Post: 06-07-2010, 12:15 PM
  3. Xcode Plugin for Xcode 3.2?
    By uwe.arzt in forum Help Center
    Replies: 8
    Last Post: 09-17-2009, 09:54 AM
  4. Replies: 0
    Last Post: 07-17-2009, 12:46 PM
  5. Replies: 2
    Last Post: 04-20-2009, 10:06 PM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •