Delphi XE8, using iOS framework gives AV

The app uses the iOS framework CoreMIDI and works fine targeting iOSDevice (8.2), but on iOSSimulator (iOS8.2) I get an AV on the first function call (MIDIGetNumberOfSources) from this framework.

There are no errors shown by Delphi, nor by the paServer in Verbose mode, and a *new empty app that only calls MIDIGetNumberOfSources, does not fail either*!

How can calling a framework suddenly not work, in this main app?

I think the bindings for the framework are correct. I have added the framework to the iPhoneSimulator 8.2 SDK in the Delphi SDK manager, updated local File Cache and verified that the framework exists in C:\Users\Hans\Documents\Embarcadero\Studio\SDKs\iPhoneSimulator8.2.sdk\System\Library\Frameworks.
If any of these things had been wrong I suppose the new empty app would have failed too.

Here is the system log from the simulator:

{code}
May 27 12:00:49 Hanss-Mac-mini.local CoreSimulatorBridge[23458]: LaunchServices: installing app for existing placeholder <LSApplicationProxy: 0x78e114a0> MyMobileApp
May 27 12:00:49 Hanss-Mac-mini.local CoreSimulatorBridge[23458]: LaunchServices: Not creating progress for <LSApplicationProxy: 0x78e114a0> MyMobileApp since it is not a placeholder.
May 27 12:00:49 Hanss-Mac-mini.local installd[23446]: 0xb0093000 -[MIClientConnection _doBackgroundInstallationForPath:withOptions:completion:]: Install of "/Users/Hans/PAServer/scratch-dir/Hans-MyMac/MyMobileApp.app" type Developer requested by CoreSimulatorBridge (pid 23458)
May 27 12:00:49 Hanss-Mac-mini.local installd[23446]: 0xb0093000 MDMCreateDeltaDirectory: calling MDMDirectoryDiff with:
    state->old_bundle: /Users/Hans/Library/Developer/CoreSimulator/Devices/ADAE10FD-2A7E-4168-947B-FDFF09D540A3/data/Containers/Bundle/Application/E2DFA4FB-E2C9-42C1-A755-222E6AFF6D87/MyMobileApp.app
    state->new_bundle: /Users/Hans/PAServer/scratch-dir/Hans-MyMac/MyMobileApp.app
    state->dst_bundle: /Users/Hans/Library/Developer/CoreSimulator/Devices/ADAE10FD-2A7E-4168-947B-FDFF09D540A3/data/Library/Caches/com.apple.mobile.installd.staging/temp.oUQjRY/extracted/Payload//MyMobileApp.app, binaryDiff flag: FALSE
        dst_ipa: /Users/Hans/Library/Developer/CoreSimulator/Devices/ADAE10FD-2A7E-4168-947B-FDFF09D540A3/data/Library/Caches/com.apple.mobile.installd.staging/temp.oUQjRY/extracted
May 27 12:00:49 Hanss-Mac-mini.local installd[23446]: 0xb0093000 createDictFromFile: open failed for /Users/Hans/Library/Developer/CoreSimulator/Devices/ADAE10FD-2A7E-4168-947B-FDFF09D540A3/data/Containers/Bundle/Application/E2DFA4FB-E2C9-42C1-A755-222E6AFF6D87/ManifestCache.plist : No such file or directory
May 27 12:00:49 Hanss-Mac-mini.local installd[23446]: 0xb0115000 __MDMDirectoryDiff_block_invoke29: calling writeDictToFile with: /Users/Hans/Library/Developer/CoreSimulator/Devices/ADAE10FD-2A7E-4168-947B-FDFF09D540A3/data/Library/Caches/com.apple.mobile.installd.staging/temp.oUQjRY/extracted/ManifestCache.plist
May 27 12:00:49 Hanss-Mac-mini.local installd[23446]: 0xb0115000 writeDictToFile: ==== Successfully wrote Manifest cache to /Users/Hans/Library/Developer/CoreSimulator/Devices/ADAE10FD-2A7E-4168-947B-FDFF09D540A3/data/Library/Caches/com.apple.mobile.installd.staging/temp.oUQjRY/extracted/ManifestCache.plist
May 27 12:00:49 Hanss-Mac-mini.local installd[23446]: 0xb0093000 -[MIInstaller performInstallationWithError:]: Installing <MIInstallableBundlePatch ID=MyMobileApp; Version=1.0.0, ShortVersion=1.0>
May 27 12:00:49 Hanss-Mac-mini.local installd[23446]: 0xb0093000 -[MIInstallableBundlePatch applyPatchWithError:]: Attempting patch update of MyMobileApp from 1.0.0 (1.0) to 1.0.0 (1.0)
May 27 12:00:49 Hanss-Mac-mini.local SpringBoard[23450]: Killing MyMobileApp for termination assertion
May 27 12:00:49 Hanss-Mac-mini.local pkd[23466]: releasing plug-in hold D3EDD1F4-6903-4308-BDD2-7F24E721085E for dead client pid 23450
May 27 12:00:49 Hanss-Mac-mini.local installd[23446]: 0xb0093000 -[MIInstallableBundle _refreshUUIDForContainer:withError:]: Data container for MyMobileApp is now at /Users/Hans/Library/Developer/CoreSimulator/Devices/ADAE10FD-2A7E-4168-947B-FDFF09D540A3/data/Containers/Data/Application/F784D308-C571-4BF4-83DD-4C4762BCB6C2
May 27 12:00:49 Hanss-Mac-mini.local installd[23446]: 0xb0093000 -[MIContainer makeContainerLiveReplacingContainer:withError:]: Made container live for MyMobileApp at /Users/Hans/Library/Developer/CoreSimulator/Devices/ADAE10FD-2A7E-4168-947B-FDFF09D540A3/data/Containers/Bundle/Application/D29B70CB-4B8B-4EF6-9625-09E37F6579F4
May 27 12:00:49 Hanss-Mac-mini.local installd[23446]: 0xb0093000 -[MIInstaller performInstallationWithError:]: Staging: 0.02s; Waiting: 0.00s; Installation: 0.05s; Overall: 0.06s
May 27 12:00:49 Hanss-Mac-mini.local CoreSimulatorBridge[23458]: LaunchServices: NotifiedObservers <LSApplicationProxy: 0x78e14c90> MyMobileApp was installed
May 27 12:00:49 Hanss-Mac-mini.local lsd[23464]: LaunchServices: Updating identifier store
May 27 12:00:49 Hanss-Mac-mini.local SpringBoard[23450]: libMobileGestalt MobileGestalt.c:841: still-camera is static and will never generate a notification
May 27 12:00:49 Hanss-Mac-mini.local SpringBoard[23450]: libMobileGestalt MobileGestalt.c:841: stand-alone-contacts is static and will never generate a notification
May 27 12:00:49 Hanss-Mac-mini.local /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator.sdk/usr/libexec/lsd[23464]: LaunchServices: Failed to set the data protection class for /Users/Hans/Library/Developer/CoreSimulator/Devices/ADAE10FD-2A7E-4168-947B-FDFF09D540A3/data/tmp/com.apple.IconsCache/MyMobileApp_defaultRole-FM_ApplicationIcon_57x57_FM_ApplicationIcon_87x87_FM_ApplicationIcon_114x114_FM_ApplicationIcon_72x72_FM_ApplicationIcon_144x144_FM_A
pplicationIcon_76x76_FM_ApplicationIcon_152x152_FM_ApplicationIcon_60x60_FM_ApplicationIcon_120x120_FM_ApplicationIcon_180x180-32
May 27 12:00:49 Hanss-Mac-mini.local SpringBoard[23450]: Installed apps did change.
    Added: {(
    )}
    Removed: {(
    )}
    Modified: {(
        MyMobileApp
    )}
May 27 12:00:50 Hanss-Mac-mini assertiond[23454]: assertion failed: 13F1077 12D508: assertiond + 14743 [849F745E-3AAA-3638-91FF-892312A54F42]: 0x1
{code}
0
Hans
5/27/2015 2:30:44 PM
embarcadero.delphi.firemonkey 4901 articles. 4 followers. Follow

2 Replies
1421 Views

Similar Articles

[PageSpeed] 23
Get it on Google Play
Get it on Apple App Store

Am 27.05.2015 um 16:30 schrieb Hans Jakobsen:
> The app uses the iOS framework CoreMIDI and works fine targeting iOSDevice (8.2), but on iOSSimulator (iOS8.2) I get an AV on the first function call (MIDIGetNumberOfSources) from this framework.
> 
> May 27 12:00:50 Hanss-Mac-mini assertiond[23454]: assertion failed: 13F1077 12D508: assertiond + 14743 [849F745E-3AAA-3638-91FF-892312A54F42]: 0x1
> {code}
> 

Hello,

would you mind reasking this in the iOS specific newsgroup?
This framework has nothing to do with the FMX GUI framework. Your
question is better suited for the delphi.platformspecific.iOS group.

Greetings

Markus
0
Markus
5/27/2015 4:56:07 PM
> {quote:title=Markus Humm wrote:}{quote}
> would you mind reasking this in the iOS specific newsgroup?
> This framework has nothing to do with the FMX GUI framework. Your
> question is better suited for the delphi.platformspecific.iOS group.

You are right, sorry about that. I have posted a new question in the iOS forum.
0
Hans
5/28/2015 2:18:36 PM
Reply:

Similar Artilces:

How to create iOS Service application using delphi XE8
Hi, I'm using Delphi XE8 for developing mobile application. In that I have tried to create Service application for Android and iOs. And from the internet I found some of the sample code for developing Service application in Android. [Sample code for Android Service application|http://blog.blong.com/2013/11/delphi-and-android-services.html] . And Please provide me any sample code for developing Service Application for iPhone(iOs) or is the same code can be used for iPhone also. Please help me in this. Thanks A lot. https://developer.apple.com/library/ios/documentation/iPhone/Concept...

Delphi XE8 FireMonkey iOS Style problem with segmented buttons
Hi, Going through some tutorials to get used to mobile development using FireMonkey and Delphi XE8. One of the most basic layouts tend to use the toolbar component with segmented speed buttons, and then applying the correct segmented style to each button. However, there seems to be an issue with the iOS style. ...

Delphi XE8 FireMonkey iOS Style problem with segmented buttons [Edit]
Hi, Going through some tutorials to get used to mobile development using FireMonkey and Delphi XE8. One of the most basic layouts tend to use the toolbar component with segmented speed buttons, and then applying the correct segmented style to each button. However, there seems to be an issue with the iOS style. [Screenshot.|https://drive.google.com/file/d/0B68Ju-patBf-RVVEMmI5UDd2cG8/view?usp=sharing] Using the "segmentedbuttonleft", "segmentedbuttonmiddle", and "segmentedbuttonright" styles is producing an extra border on the right button in iOS. It seems...

I can to install one not delphi program foir iOS into one iOS for delphi?
For example i have one programm builded as xcode for iOS, and i build one program as delphi for iOS. I want to have only one instalation, i can to add this xcode program into my delphi installer of my ios program? I can to do the same as android? how i can to to this? > {quote:title=oscar mejia wrote:}{quote} > For example i have one programm builded as xcode for iOS, and i build one program as delphi for iOS. I want to have only one instalation, i can to add this xcode program into my delphi installer of my ios program? > > I can to do the same as android? how i can to to...

Using Delphi 7 and Delphi 2010
I had a project in Delphi 7. I worked on it in Delphi 2010. When I try to open the .dpr again in Delphi 7, the IDE toolbar widens across both monitors, and Delphi 7 locks up. It appears that Delphi 2010 modifies the .dpr in a way that makes Delphi 7 unable to open it again. All my forms & units appear to open fine in D7 after D2010, except for the warnings on the ExplicitHeight and ExplicitWidth properties being missing... I can easily recreate the .dpr, but is this expected behavior? Thanks. Tom Field wrote: > I had a project in Delphi 7. > > I worked o...

delphi Win32 using delphi .NET dll
Hi, I'm trying to use a delphi.NET dll in delphi.WIN32. I am currently using CodeGear Delphi 2007 with version2(base version) of .NET I can get the dll to import into the WIN32 application the only problem is when i include things such as: "using Classes,DateUtils, SysUtils" in the .NET dll the win32 application will instantly hang when any of the dll functions are called. Any help would be great thanks. Also I have tried this example and it also crashes for me? http://cc.embarcadero.com/Item/22688 -Braden I also found this.. "The problem is that, wehn you instal...

To use or not to use Delphi
Sadly, it seems to me that there is a sort of race between the two threads, for and against using Delphi in new projects, with more or less the same users posting in both threads. Arguments are fiercely debated in both camps. Borland had their own vision. As a community, now that Delphi has changed ownership I believe we should try to be more consistent, more clear, and more articulate in what we expect from Embercadero in terms of Delphi. We can contribute to keeping Delphi alive and moving in the right direction. "Laurent Cocea" schrieb: > Sadly, it seems to me that there ...

Delphi XE4 - Firemonkey
I have an application that runs fine on windows, however when running on iOS simulator the onKeyUp event for a TEdit control is not being fired? Please advise if this event should get fired when running on iOS? This problem occurs onKeyUp events created directly on the control and by assigning the event programatically. Running XE4 update 1 iPhoneOS6.1.sdk Minimac: OS X 10.9 XCode 5 iOS Simulator Version 7.0 - iPad Retina / iOS 7.0.3(11B508) ...

can i use delphi 2007 bpls in delphi 2009
can i use delphi 2007 bpls in delphi 2009 ? "Gaetan SIRY" skrev i meddelelsen news:8703@forums.codegear.com... > can i use delphi 2007 bpls in delphi 2009 ? No. -- Finn Tolderlund The compatiblity between D2006 and D2007 was unique. Normaly they can't be compatible because new version enhance/change the API. And D2009 defines String = Unicode where older version has String = Ansistring so D200x/Dx-BPL are 200% incompatible with D2009. ...

Delphi and Delphi for .Net
It seems that Delphi for .Net is slower than Delphi Win32 native applicaiton. I would like to know is it true all .Net application is slower than Win32 native applicaiton or it is Delphi for .Net only. Your information is great appreciated, Inung On 2011-06-21 18:20:17 +0100, Inung Huang said: > It seems that Delphi for .Net is slower than Delphi Win32 native applicaiton. > I would like to know is it true all .Net application is slower than > Win32 native applicaiton or it is Delphi for .Net only. If you are only running the code in the application once then, yes, yo...

How to use a delphi XE3 obj file in delphi 2007?
Hi, I'm migrating an application from delphi 2007 to delphi XE3 and I would like to do it in several steps. To do this I need to use a part of my new code (XE3) in the current delphi 2007 application. So I want to use the .obj file from my XE3 file. I know I have to use the {$L 'Filename'} and I know that I have to declare the functions that I want to use in external in my D2007 project. I wanted to make an easy and simple example to see how it works with only 1 function 'hello world' compiled in obj with XE3 but I can't find the way to use it in D2007. In D200...

MOVED: Use Delphi XE TLB importer in Delphi 2007?
....to the ActiveX group: https://forums.embarcadero.com/thread.jspa?threadID=47170 -- Craig Stuntz · Vertex Systems Corp. · Columbus, OH Delphi/InterBase Weblog : http://blogs.teamb.com/craigstuntz/ ...

Delphi, Firemonkey, IOS, and TCP howto?
I was really excited about the new ability to compile IOS apps written in Delphi, but I'm starting to find some major limitations, unless I'm really overlooking something. I want to write an iphone/pad app that needs to retrieve data from a socket connection, or from a webpage (http, webservice, anything). It seems that all of the Firemonkey internet and indy components are not supported within xcode. Am I overlooking something here, or is this a feature that will not be implemented, or is it planned to be implemented? If this kind of communication is not supported, this is a hu...