Watch, Follow, &
Connect with Us

For forums, blogs and more please visit our
Developer Tools Community.


Welcome, Guest
Guest Settings
Help

Thread: DCCIOS32 - iOS Simulator


This question is answered. Helpful answers available: 1. Correct answers available: 1.


Permlink Replies: 3 - Last Post: Sep 8, 2015 3:32 PM Last Post By: Jako Grobler
Jako Grobler

Posts: 45
Registered: 6/26/15
DCCIOS32 - iOS Simulator  
Click to report abuse...   Click to reply to this thread Reply
  Posted: Jun 2, 2015 9:20 AM
Hi,

I am having a hard time wrapping my head around the difference between targetting the iOS simulator and targetting an iOS device.

1) Correct me if I am wrong but it seems that:
1a. DCCIOS32 (iOS Simulator) only allows linking agains dynamic libraries, and not static libraries (not sure why).
1b. DCCIOSARM (iOS Device) only allows linking against static libraries, and not dynamic libraries (to prevent code injection in devices).
1c. DCCOSX (OS X) allows linking against both dynamic and static libraries.

2) Does this mean that if I only have third-party static libaries I am screwed if I want to run and debug in the iOS Simulator? Even if LIPO was used to include the X86 image in the library file (*.a)?

3) If we have the source then can we use XCode to produce a DYLIB file instead for testing in the iOS Simulator (I know there is a hidden setting to allow XCode to produce DYLIB).

4) If I want to build Delphi sources to libraries does it mean I have to compile to both static and shared libraries to target the different iOS platforms?

5) Even so, I am not able to get any DYLIB to link in DCCIOS32. I am using the DYLIB files from the iPhoneSimulator SDK (which I would have thought is targetted for the simulator), but getting a "Bad object file format" error. It seems clear I do not understand the iOS linking process at all. I will be grateful if anyone can explain this one to me. I added the {$L libiconv.dylib} option to my source to test. I even copied it to my source folder in case Delphi was looking somewhere else.

Any clarifications will be greatly appreciated.
Eli M

Posts: 1,346
Registered: 11/9/13
Re: DCCIOS32 - iOS Simulator
Helpful
Click to report abuse...   Click to reply to this thread Reply
  Posted: Jun 7, 2015 9:21 PM   in response to: Jako Grobler in response to: Jako Grobler
I've heard DCCIOSARM can do dylib under IOS8. Haven't researched it.

Sample cross platform library (it is suppose to support IOS simulator but I haven't tried it):
http://www.fmxexpress.com/convert-sound-files-and-apply-audio-effects-in-delphi-xe8-firemonkey-on-android-and-ios/

Another cross platform library that includes the libraries a different way:
http://www.fmxexpress.com/free-lua-scripting-interpreter-library-for-delphi-xe7-firemonkey-on-android-and-ios/

I'm not sure if Delphi can produce a IOS static library. This does though: http://julien.marcel.free.fr/ObjP_Part7.html
Jako Grobler

Posts: 45
Registered: 6/26/15
Re: DCCIOS32 - iOS Simulator  
Click to report abuse...   Click to reply to this thread Reply
  Posted: Jun 11, 2015 8:27 AM   in response to: Jako Grobler in response to: Jako Grobler
Thank you for the reply. I have been trying to say thank you but the reply editor in these forums kept giving an eventual timeout error.

I am actually trying to see if I can convince the ZBar library to link in Delphi for the iOS Simulator target.
Jako Grobler

Posts: 45
Registered: 6/26/15
Re: DCCIOS32 - iOS Simulator  
Click to report abuse...   Click to reply to this thread Reply
  Posted: Sep 8, 2015 3:32 PM   in response to: Jako Grobler in response to: Jako Grobler
For now I am using conditional defines to exclude the ZBar library from my project when targeting the simulator.
Legend
Helpful Answer (5 pts)
Correct Answer (10 pts)

Server Response from: ETNAJIVE02