I get this: [DCC Error] E2597 ld: cannot link directly with C:\Users\Lasse\Documents\Embarcadero\Studio\SDKs\iPhoneOS8.0.sdk/usr/lib/system/libdispatch.dylib. Link against the umbrella framework 'System.framework' instead. for architecture armv7
I think it's beacuse the library is hardcodet in DPF.iOS.Dispatch.pas to:
Thanks for that single line Sebastian, I spent absolutely ages searching the web and trying to figure that one out.
Lasse, if you don't want to change MacApi.Dispatch just change the line in DPF.iOS.Dispatch.pas, change any files in the DPF folder to use DPF.iOS.Dispatch instead of MacApi.Dispatch and then you need to make a copy of the
C:\Program Files (x86)\Embarcadero\Studio\15.0\source\rtl\ios\iOSapi.AVFoundation.pas
file preferably into your DPF install folder and rename. Then replace MacAPI.Dispatch in this file with DPF.iOS.Dispatch and replace all instances of iOSapi.AVFoundation in the DPF files uses clause with the new name. It worked for me, but you will have to remove any instances of iOSapi.AVFoundation and FMX.Media from your code.
Hope this helps
Paul
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi
I have this error. But after looking through the post, what are the files i need to change to fix this error when compiling with my project. I am using DPF 9.0.0 when building my project
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi
I have this error. But after looking through the post, what are the files i need to change to fix this error when compiling with my project. I am using DPF 9.0.0 when building my project
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi Everyone
Finally managed to understand Paul instructions.
Copy the C:\Program Files (x86)\Embarcadero\Studio\15.0\source\rtl\ios\iOSapi.AVFoundation.pas into DPF source direction and rename it to iOSapi.AVFound.
Then open iOSapi.AVFound and change the MacApi.dispatch to DPF.iOS.Dispatch
Then in the DPF source directory, need to change the following files in the uses section from "iOSapi.AVFoundation" to "iOSapi.AVFound".
These files are
DPF.iOS.Classes.pas
DPF.iOS.Media.pas
DPF.iOS.AVPlayer.pas
DPF.iOS.MediaPlayer.pas
DPF.iOS.Media.pas
DPF.iOS.MPMoviePlayerViewController.pas
DPF.iOS.SlideDialog.pas
DPF.iOS.MPVolume.pas
DPF.iOS.AVFoundationConsts.pas
Hope this will help others as well.
thanks
chris
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Make a copy of MacApi.Dispatch.pas into a new folder and patch the file there. Then add this folder as first item in the iOS "Library paths" in the Delphi options.
No need to rename the unit and patch all the DPF.iOS.* files.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Any chance to have new IOS8 support ? Thanks !
I'm sure this will come. Please feel free to report issues with iOS8 if you find any. That can greatly speed up things.
Hi
I'll check it
regards
Hi,
I get this:
[DCC Error] E2597 ld: cannot link directly with C:\Users\Lasse\Documents\Embarcadero\Studio\SDKs\iPhoneOS8.0.sdk/usr/lib/system/libdispatch.dylib. Link against the umbrella framework 'System.framework' instead. for architecture armv7
I think it's beacuse the library is hardcodet in DPF.iOS.Dispatch.pas to:
const
libdispatch = '/usr/lib/system/libdispatch.dylib';
But I could be mistaken.
Actually theres is a problem in FMX.Media too, so I hope that Embarcadero gets back soon and fixes this.
BR
Lasse
This needs to changed to '/usr/lib/libSystem.dylib'. Also in MacApi.Dispatch.
Thanks for that single line Sebastian, I spent absolutely ages searching the web and trying to figure that one out.
Lasse, if you don't want to change MacApi.Dispatch just change the line in DPF.iOS.Dispatch.pas, change any files in the DPF folder to use DPF.iOS.Dispatch instead of MacApi.Dispatch and then you need to make a copy of the
C:\Program Files (x86)\Embarcadero\Studio\15.0\source\rtl\ios\iOSapi.AVFoundation.pas
file preferably into your DPF install folder and rename. Then replace MacAPI.Dispatch in this file with DPF.iOS.Dispatch and replace all instances of iOSapi.AVFoundation in the DPF files uses clause with the new name. It worked for me, but you will have to remove any instances of iOSapi.AVFoundation and FMX.Media from your code.
Hope this helps
Paul
I just put those two changed files: MacApi.Dispatch and DPF.iOS.Dispatch.pas in my project folder when I want to use iOS 8.
would you please send me theese 2 files
can't get it to work
I stille get this error
You can get the updated DPF.iOS.Dispatch from the SVN repository. I am not allowed to redistribute copyrighted Delphi units.
Hi
I have this error. But after looking through the post, what are the files i need to change to fix this error when compiling with my project. I am using DPF 9.0.0 when building my project
Hi
I have this error. But after looking through the post, what are the files i need to change to fix this error when compiling with my project. I am using DPF 9.0.0 when building my project
Hi Everyone
Finally managed to understand Paul instructions.
Copy the C:\Program Files (x86)\Embarcadero\Studio\15.0\source\rtl\ios\iOSapi.AVFoundation.pas into DPF source direction and rename it to iOSapi.AVFound.
Then open iOSapi.AVFound and change the MacApi.dispatch to DPF.iOS.Dispatch
Then in the DPF source directory, need to change the following files in the uses section from "iOSapi.AVFoundation" to "iOSapi.AVFound".
These files are
DPF.iOS.Classes.pas
DPF.iOS.Media.pas
DPF.iOS.AVPlayer.pas
DPF.iOS.MediaPlayer.pas
DPF.iOS.Media.pas
DPF.iOS.MPMoviePlayerViewController.pas
DPF.iOS.SlideDialog.pas
DPF.iOS.MPVolume.pas
DPF.iOS.AVFoundationConsts.pas
Hope this will help others as well.
thanks
chris
Make a copy of MacApi.Dispatch.pas into a new folder and patch the file there. Then add this folder as first item in the iOS "Library paths" in the Delphi options.
No need to rename the unit and patch all the DPF.iOS.* files.
I'm still using XE5, when I use IOS8.1, it compiles with error :
[DCC Error] E2597 ld: file not found: /usr/lib/libextension.dylib for architecture armv7
What's wrong with it ?