• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Apple USBSimple Example & Rosetta
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Apple USBSimple Example & Rosetta


  • Subject: Apple USBSimple Example & Rosetta
  • From: Ray Swartz <email@hidden>
  • Date: Tue, 03 Jan 2006 09:42:00 -0500

I am working on getting a PowerPC app that uses USB to run on an Intel Mac. The USB code is in a universal binary library. We don't want to make a universal binary of the app, because it uses PowerPlant. The library works when run natively; i.e., when the app is universal, too. But it fails in our PPC app when run on Intel under Rosetta. It connects, finds a configuration, but fails to find any interfaces. It's hard to debug, because the Xcode debugger doesn't work under Rosetta.

One thing I've done is to build the sample Apple project USBSimple Example. To my surprise, this also fails in much the same way on the Intel Mac when run under Rosetta. Has anyone else seen this? 

When I added the byte-swapping macro USBToHostLong to the following line

while ( (usbInterfaceRef = IOIteratorNext( USBToHostLong( iterator ) )))

it worked. At least that part. Do I need to add a lot of these macros to my code? Any advice would be appreciated.

=================================
Ray Swartz
X-Rite, Inc.

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: Apple USBSimple Example & Rosetta
      • From: "Sean McBride" <email@hidden>
    • Re: Apple USBSimple Example & Rosetta
      • From: Eric Albert <email@hidden>
  • Prev by Date: Re: Executable path is nil!
  • Next by Date: Re: Executable path is nil!
  • Previous by thread: Re: Executable path is nil!
  • Next by thread: Re: Apple USBSimple Example & Rosetta
  • Index(es):
    • Date
    • Thread