librelist archives

« back to archive

Strange interaction with MailCore and Apple's Search Kit

Strange interaction with MailCore and Apple's Search Kit

From:
eric g
Date:
2014-10-23 @ 15:38
I have a sample test project at:

http://ericgorr.net/cocoadev/search_test_2.zip

However, since the MailCore and MailCore2 source is so large, I haven't
included it.

The sample OS X test application does not link against MailCore. I have
only added the MailCore Xcode project to the search_test project. However,
when I run it, after merely building the MailCore framework using the
MailCore scheme, I get the following error messages while
SKIndexAddDocument is being executed.

2014-10-23 11:05:58.377 search_test[35196:2180704] Error loading
/System/Library/Spotlight/Mail.mdimporter/Contents/MacOS/Mail:
dlopen(/System/Library/Spotlight/Mail.mdimporter/Contents/MacOS/Mail,
262): Symbol not found: _MCAccountTypeIMAP
  Referenced from:
/System/Library/PrivateFrameworks/IMAP.framework/Versions/A/IMAP
  Expected in:

/Users/ericgorr/Library/Developer/Xcode/DerivedData/search_test-bupoejzrhwzvwigjwigtdiebyqdq/Build/Products/Debug/MailCore.framework/Versions/A/MailCore
 in /System/Library/PrivateFrameworks/IMAP.framework/Versions/A/IMAP
2014-10-23 11:05:58.377 search_test[35196:2180704] Cannot find function
pointer MailImporterPlugInFactory for factory
142C071E-A837-11D8-A224-0003930A8D8C in CFBundle/CFPlugIn 0x10010e970
</System/Library/Spotlight/Mail.mdimporter> (bundle, not loaded)
2014-10-23 11:05:58.390 search_test[35196:2180704] Error loading
/System/Library/Spotlight/Mail.mdimporter/Contents/MacOS/Mail:
dlopen(/System/Library/Spotlight/Mail.mdimporter/Contents/MacOS/Mail,
262): Symbol not found: _MCAccountTypeIMAP
  Referenced from:
/System/Library/PrivateFrameworks/IMAP.framework/Versions/A/IMAP
  Expected in:

/Users/ericgorr/Library/Developer/Xcode/DerivedData/search_test-bupoejzrhwzvwigjwigtdiebyqdq/Build/Products/Debug/MailCore.framework/Versions/A/MailCore
 in /System/Library/PrivateFrameworks/IMAP.framework/Versions/A/IMAP
2014-10-23 11:05:58.390 search_test[35196:2180704] Cannot find function
pointer MailImporterPlugInFactory for factory
142C071E-A837-11D8-A224-0003930A8D8C in CFBundle/CFPlugIn 0x10010e970
</System/Library/Spotlight/Mail.mdimporter> (bundle, not loaded)


I have no idea what might be happening. It would not seem to make any
sense at all. If anyone has any ideas, I would be interested.

I am running OS X 10.10 and using Xcode 6.1.

Re: [mailcoredev] Strange interaction with MailCore and Apple's Search Kit

From:
eric g
Date:
2014-10-23 @ 17:21
So, what appears to have happened with Yosemite, is that Apple now have
its own private framework also called MailCore and in the process of
calling SKIndexAddDoument, the OS was not using the one it should have
been.

To fix this, I went to the build setting for the framework and simply
changed the ProductName to something else. It all appears to be working.

This Apple private framework appears to be new with Yosemite. If you are
building a product which will be used on Yosemite machines, you will
likely need to employ this solution.

If someone has a better solution, I would be interested.

On Thu, October 23, 2014 10:38 am, eric g wrote:
> I have a sample test project at:
>
>
> http://ericgorr.net/cocoadev/search_test_2.zip
>
>
> However, since the MailCore and MailCore2 source is so large, I haven't
> included it.
>
> The sample OS X test application does not link against MailCore. I have
> only added the MailCore Xcode project to the search_test project. However,
>  when I run it, after merely building the MailCore framework using the
> MailCore scheme, I get the following error messages while
> SKIndexAddDocument is being executed.
>
>
> 2014-10-23 11:05:58.377 search_test[35196:2180704] Error loading
> /System/Library/Spotlight/Mail.mdimporter/Contents/MacOS/Mail:
> dlopen(/System/Library/Spotlight/Mail.mdimporter/Contents/MacOS/Mail, 262):
> Symbol not found: _MCAccountTypeIMAP
> Referenced from:
> /System/Library/PrivateFrameworks/IMAP.framework/Versions/A/IMAP
> Expected in:
> /Users/ericgorr/Library/Developer/Xcode/DerivedData/search_test-bupoejzrhw
> zvwigjwigtdiebyqdq/Build/Products/Debug/MailCore.framework/Versions/A/Mai
> lCore in /System/Library/PrivateFrameworks/IMAP.framework/Versions/A/IMAP
> 2014-10-23 11:05:58.377 search_test[35196:2180704] Cannot find function
> pointer MailImporterPlugInFactory for factory
> 142C071E-A837-11D8-A224-0003930A8D8C in CFBundle/CFPlugIn 0x10010e970
> </System/Library/Spotlight/Mail.mdimporter> (bundle, not loaded)
> 2014-10-23 11:05:58.390 search_test[35196:2180704] Error loading
> /System/Library/Spotlight/Mail.mdimporter/Contents/MacOS/Mail:
> dlopen(/System/Library/Spotlight/Mail.mdimporter/Contents/MacOS/Mail, 262):
> Symbol not found: _MCAccountTypeIMAP
> Referenced from:
> /System/Library/PrivateFrameworks/IMAP.framework/Versions/A/IMAP
> Expected in:
> /Users/ericgorr/Library/Developer/Xcode/DerivedData/search_test-bupoejzrhw
> zvwigjwigtdiebyqdq/Build/Products/Debug/MailCore.framework/Versions/A/Mai
> lCore in /System/Library/PrivateFrameworks/IMAP.framework/Versions/A/IMAP
> 2014-10-23 11:05:58.390 search_test[35196:2180704] Cannot find function
> pointer MailImporterPlugInFactory for factory
> 142C071E-A837-11D8-A224-0003930A8D8C in CFBundle/CFPlugIn 0x10010e970
> </System/Library/Spotlight/Mail.mdimporter> (bundle, not loaded)
>
>
>
> I have no idea what might be happening. It would not seem to make any
> sense at all. If anyone has any ideas, I would be interested.
>
> I am running OS X 10.10 and using Xcode 6.1.
>
>
>
>

Re: [mailcoredev] Strange interaction with MailCore and Apple's Search Kit

From:
Hoa V. Dinh
Date:
2014-10-23 @ 17:45
Is the same happening with MailCore2? 

-- 
Hoa V. Dinh


On Thursday, October 23, 2014 at 10:21 AM, eric g wrote:

> So, what appears to have happened with Yosemite, is that Apple now have
> its own private framework also called MailCore and in the process of
> calling SKIndexAddDoument, the OS was not using the one it should have
> been.
> 
> To fix this, I went to the build setting for the framework and simply
> changed the ProductName to something else. It all appears to be working.
> 
> This Apple private framework appears to be new with Yosemite. If you are
> building a product which will be used on Yosemite machines, you will
> likely need to employ this solution.
> 
> If someone has a better solution, I would be interested.
> 
> On Thu, October 23, 2014 10:38 am, eric g wrote:
> > I have a sample test project at:
> > 
> > 
> > http://ericgorr.net/cocoadev/search_test_2.zip
> > 
> > 
> > However, since the MailCore and MailCore2 source is so large, I haven't
> > included it.
> > 
> > The sample OS X test application does not link against MailCore. I have
> > only added the MailCore Xcode project to the search_test project. However,
> > when I run it, after merely building the MailCore framework using the
> > MailCore scheme, I get the following error messages while
> > SKIndexAddDocument is being executed.
> > 
> > 
> > 2014-10-23 11:05:58.377 search_test[35196:2180704] Error loading
> > /System/Library/Spotlight/Mail.mdimporter/Contents/MacOS/Mail:
> > dlopen(/System/Library/Spotlight/Mail.mdimporter/Contents/MacOS/Mail, 262):
> > Symbol not found: _MCAccountTypeIMAP
> > Referenced from:
> > /System/Library/PrivateFrameworks/IMAP.framework/Versions/A/IMAP
> > Expected in:
> > /Users/ericgorr/Library/Developer/Xcode/DerivedData/search_test-bupoejzrhw
> > zvwigjwigtdiebyqdq/Build/Products/Debug/MailCore.framework/Versions/A/Mai
> > lCore in /System/Library/PrivateFrameworks/IMAP.framework/Versions/A/IMAP
> > 2014-10-23 11:05:58.377 search_test[35196:2180704] Cannot find function
> > pointer MailImporterPlugInFactory for factory
> > 142C071E-A837-11D8-A224-0003930A8D8C in CFBundle/CFPlugIn 0x10010e970
> > </System/Library/Spotlight/Mail.mdimporter> (bundle, not loaded)
> > 2014-10-23 11:05:58.390 search_test[35196:2180704] Error loading
> > /System/Library/Spotlight/Mail.mdimporter/Contents/MacOS/Mail:
> > dlopen(/System/Library/Spotlight/Mail.mdimporter/Contents/MacOS/Mail, 262):
> > Symbol not found: _MCAccountTypeIMAP
> > Referenced from:
> > /System/Library/PrivateFrameworks/IMAP.framework/Versions/A/IMAP
> > Expected in:
> > /Users/ericgorr/Library/Developer/Xcode/DerivedData/search_test-bupoejzrhw
> > zvwigjwigtdiebyqdq/Build/Products/Debug/MailCore.framework/Versions/A/Mai
> > lCore in /System/Library/PrivateFrameworks/IMAP.framework/Versions/A/IMAP
> > 2014-10-23 11:05:58.390 search_test[35196:2180704] Cannot find function
> > pointer MailImporterPlugInFactory for factory
> > 142C071E-A837-11D8-A224-0003930A8D8C in CFBundle/CFPlugIn 0x10010e970
> > </System/Library/Spotlight/Mail.mdimporter> (bundle, not loaded)
> > 
> > 
> > 
> > I have no idea what might be happening. It would not seem to make any
> > sense at all. If anyone has any ideas, I would be interested.
> > 
> > I am running OS X 10.10 and using Xcode 6.1. 

Re: [mailcoredev] Strange interaction with MailCore and Apple's Search Kit

From:
eric g
Date:
2014-10-23 @ 17:53
Yes, because the framework is still called MailCore.

You may want to consider a slight name change to at least the built
framework to remove the conflict with Apple's new private framework also
called MailCore.


On Thu, October 23, 2014 12:45 pm, Hoa V. Dinh wrote:
> Is the same happening with MailCore2?
>
>
> --
> Hoa V. Dinh
>
>
>
> On Thursday, October 23, 2014 at 10:21 AM, eric g wrote:
>
>
>> So, what appears to have happened with Yosemite, is that Apple now have
>>  its own private framework also called MailCore and in the process of
>> calling SKIndexAddDoument, the OS was not using the one it should have
>> been.
>>
>> To fix this, I went to the build setting for the framework and simply
>> changed the ProductName to something else. It all appears to be working.
>>
>>
>> This Apple private framework appears to be new with Yosemite. If you
>> are building a product which will be used on Yosemite machines, you will
>>  likely need to employ this solution.
>>
>> If someone has a better solution, I would be interested.
>>
>>
>> On Thu, October 23, 2014 10:38 am, eric g wrote:
>>
>>> I have a sample test project at:
>>>
>>>
>>>
>>> http://ericgorr.net/cocoadev/search_test_2.zip
>>>
>>>
>>>
>>> However, since the MailCore and MailCore2 source is so large, I
>>> haven't included it.
>>>
>>> The sample OS X test application does not link against MailCore. I
>>> have only added the MailCore Xcode project to the search_test project.
>>> However,
>>> when I run it, after merely building the MailCore framework using the
>>> MailCore scheme, I get the following error messages while
>>> SKIndexAddDocument is being executed.
>>>
>>>
>>>
>>> 2014-10-23 11:05:58.377 search_test[35196:2180704] Error loading
>>> /System/Library/Spotlight/Mail.mdimporter/Contents/MacOS/Mail:
>>> dlopen(/System/Library/Spotlight/Mail.mdimporter/Contents/MacOS/Mail,
>>> 262):
>>> Symbol not found: _MCAccountTypeIMAP
>>> Referenced from:
>>> /System/Library/PrivateFrameworks/IMAP.framework/Versions/A/IMAP
>>> Expected in:
>>> /Users/ericgorr/Library/Developer/Xcode/DerivedData/search_test-bupoej
>>> zrhw
>>> zvwigjwigtdiebyqdq/Build/Products/Debug/MailCore.framework/Versions/A
>>> /Mai
>>> lCore in
>>> /System/Library/PrivateFrameworks/IMAP.framework/Versions/A/IMAP
>>> 2014-10-23 11:05:58.377 search_test[35196:2180704] Cannot find
>>> function pointer MailImporterPlugInFactory for factory
>>> 142C071E-A837-11D8-A224-0003930A8D8C in CFBundle/CFPlugIn 0x10010e970
>>>  </System/Library/Spotlight/Mail.mdimporter> (bundle, not loaded)
>>> 2014-10-23 11:05:58.390 search_test[35196:2180704] Error loading
>>> /System/Library/Spotlight/Mail.mdimporter/Contents/MacOS/Mail:
>>> dlopen(/System/Library/Spotlight/Mail.mdimporter/Contents/MacOS/Mail,
>>> 262):
>>> Symbol not found: _MCAccountTypeIMAP
>>> Referenced from:
>>> /System/Library/PrivateFrameworks/IMAP.framework/Versions/A/IMAP
>>> Expected in:
>>> /Users/ericgorr/Library/Developer/Xcode/DerivedData/search_test-bupoej
>>> zrhw
>>> zvwigjwigtdiebyqdq/Build/Products/Debug/MailCore.framework/Versions/A
>>> /Mai
>>> lCore in
>>> /System/Library/PrivateFrameworks/IMAP.framework/Versions/A/IMAP
>>> 2014-10-23 11:05:58.390 search_test[35196:2180704] Cannot find
>>> function pointer MailImporterPlugInFactory for factory
>>> 142C071E-A837-11D8-A224-0003930A8D8C in CFBundle/CFPlugIn 0x10010e970
>>>  </System/Library/Spotlight/Mail.mdimporter> (bundle, not loaded)
>>>
>>>
>>>
>>>
>>> I have no idea what might be happening. It would not seem to make any
>>>  sense at all. If anyone has any ideas, I would be interested.
>>>
>>> I am running OS X 10.10 and using Xcode 6.1.
>>>
>
>

Re: [mailcoredev] Strange interaction with MailCore and Apple's Search Kit

From:
Matt Ronge
Date:
2014-10-23 @ 18:06
Hilarious.

I just dumped the symbols to see if it was related in anyway. Looks like 
no, but instead Apple’s own internal “MailCore"
—
Matt Ronge
Astro HQ

> On Oct 23, 2014, at 12:53 PM, eric g <mailist@ericgorr.net> wrote:
> 
> Yes, because the framework is still called MailCore.
> 
> You may want to consider a slight name change to at least the built
> framework to remove the conflict with Apple's new private framework also
> called MailCore.
> 
> 
> On Thu, October 23, 2014 12:45 pm, Hoa V. Dinh wrote:
>> Is the same happening with MailCore2?
>> 
>> 
>> --
>> Hoa V. Dinh
>> 
>> 
>> 
>> On Thursday, October 23, 2014 at 10:21 AM, eric g wrote:
>> 
>> 
>>> So, what appears to have happened with Yosemite, is that Apple now have
>>> its own private framework also called MailCore and in the process of
>>> calling SKIndexAddDoument, the OS was not using the one it should have
>>> been.
>>> 
>>> To fix this, I went to the build setting for the framework and simply
>>> changed the ProductName to something else. It all appears to be working.
>>> 
>>> 
>>> This Apple private framework appears to be new with Yosemite. If you
>>> are building a product which will be used on Yosemite machines, you will
>>> likely need to employ this solution.
>>> 
>>> If someone has a better solution, I would be interested.
>>> 
>>> 
>>> On Thu, October 23, 2014 10:38 am, eric g wrote:
>>> 
>>>> I have a sample test project at:
>>>> 
>>>> 
>>>> 
>>>> http://ericgorr.net/cocoadev/search_test_2.zip
>>>> 
>>>> 
>>>> 
>>>> However, since the MailCore and MailCore2 source is so large, I
>>>> haven't included it.
>>>> 
>>>> The sample OS X test application does not link against MailCore. I
>>>> have only added the MailCore Xcode project to the search_test project.
>>>> However,
>>>> when I run it, after merely building the MailCore framework using the
>>>> MailCore scheme, I get the following error messages while
>>>> SKIndexAddDocument is being executed.
>>>> 
>>>> 
>>>> 
>>>> 2014-10-23 11:05:58.377 search_test[35196:2180704] Error loading
>>>> /System/Library/Spotlight/Mail.mdimporter/Contents/MacOS/Mail:
>>>> dlopen(/System/Library/Spotlight/Mail.mdimporter/Contents/MacOS/Mail,
>>>> 262):
>>>> Symbol not found: _MCAccountTypeIMAP
>>>> Referenced from:
>>>> /System/Library/PrivateFrameworks/IMAP.framework/Versions/A/IMAP
>>>> Expected in:
>>>> /Users/ericgorr/Library/Developer/Xcode/DerivedData/search_test-bupoej
>>>> zrhw
>>>> zvwigjwigtdiebyqdq/Build/Products/Debug/MailCore.framework/Versions/A
>>>> /Mai
>>>> lCore in
>>>> /System/Library/PrivateFrameworks/IMAP.framework/Versions/A/IMAP
>>>> 2014-10-23 11:05:58.377 search_test[35196:2180704] Cannot find
>>>> function pointer MailImporterPlugInFactory for factory
>>>> 142C071E-A837-11D8-A224-0003930A8D8C in CFBundle/CFPlugIn 0x10010e970
>>>> </System/Library/Spotlight/Mail.mdimporter> (bundle, not loaded)
>>>> 2014-10-23 11:05:58.390 search_test[35196:2180704] Error loading
>>>> /System/Library/Spotlight/Mail.mdimporter/Contents/MacOS/Mail:
>>>> dlopen(/System/Library/Spotlight/Mail.mdimporter/Contents/MacOS/Mail,
>>>> 262):
>>>> Symbol not found: _MCAccountTypeIMAP
>>>> Referenced from:
>>>> /System/Library/PrivateFrameworks/IMAP.framework/Versions/A/IMAP
>>>> Expected in:
>>>> /Users/ericgorr/Library/Developer/Xcode/DerivedData/search_test-bupoej
>>>> zrhw
>>>> zvwigjwigtdiebyqdq/Build/Products/Debug/MailCore.framework/Versions/A
>>>> /Mai
>>>> lCore in
>>>> /System/Library/PrivateFrameworks/IMAP.framework/Versions/A/IMAP
>>>> 2014-10-23 11:05:58.390 search_test[35196:2180704] Cannot find
>>>> function pointer MailImporterPlugInFactory for factory
>>>> 142C071E-A837-11D8-A224-0003930A8D8C in CFBundle/CFPlugIn 0x10010e970
>>>> </System/Library/Spotlight/Mail.mdimporter> (bundle, not loaded)
>>>> 
>>>> 
>>>> 
>>>> 
>>>> I have no idea what might be happening. It would not seem to make any
>>>> sense at all. If anyone has any ideas, I would be interested.
>>>> 
>>>> I am running OS X 10.10 and using Xcode 6.1.
>>>> 
>> 
>> 
> 
> 

Re: [mailcoredev] Strange interaction with MailCore and Apple's Search Kit

From:
Hoa V. Dinh
Date:
2014-10-23 @ 18:12
It’s weird though that it’s matching on the binary name.  

--  
Hoa V. Dinh


On Thursday, October 23, 2014 at 11:06 AM, Matt Ronge wrote:

> Hilarious.
>  
> I just dumped the symbols to see if it was related in anyway. Looks like
no, but instead Apple’s own internal “MailCore"
> —
> Matt Ronge
> Astro HQ
>  
> > On Oct 23, 2014, at 12:53 PM, eric g <mailist@ericgorr.net 
(mailto:mailist@ericgorr.net)> wrote:
> >  
> > Yes, because the framework is still called MailCore.
> >  
> > You may want to consider a slight name change to at least the built
> > framework to remove the conflict with Apple's new private framework also
> > called MailCore.
> >  
> >  
> > On Thu, October 23, 2014 12:45 pm, Hoa V. Dinh wrote:
> > > Is the same happening with MailCore2?
> > >  
> > >  
> > > --
> > > Hoa V. Dinh
> > >  
> > >  
> > >  
> > > On Thursday, October 23, 2014 at 10:21 AM, eric g wrote:
> > >  
> > >  
> > > > So, what appears to have happened with Yosemite, is that Apple now have
> > > > its own private framework also called MailCore and in the process of
> > > > calling SKIndexAddDoument, the OS was not using the one it should have
> > > > been.
> > > >  
> > > > To fix this, I went to the build setting for the framework and simply
> > > > changed the ProductName to something else. It all appears to be working.
> > > >  
> > > >  
> > > > This Apple private framework appears to be new with Yosemite. If you
> > > > are building a product which will be used on Yosemite machines, you will
> > > > likely need to employ this solution.
> > > >  
> > > > If someone has a better solution, I would be interested.
> > > >  
> > > >  
> > > > On Thu, October 23, 2014 10:38 am, eric g wrote:
> > > >  
> > > > > I have a sample test project at:
> > > > >  
> > > > >  
> > > > >  
> > > > > http://ericgorr.net/cocoadev/search_test_2.zip
> > > > >  
> > > > >  
> > > > >  
> > > > > However, since the MailCore and MailCore2 source is so large, I
> > > > > haven't included it.
> > > > >  
> > > > > The sample OS X test application does not link against MailCore. I
> > > > > have only added the MailCore Xcode project to the search_test project.
> > > > > However,
> > > > > when I run it, after merely building the MailCore framework using the
> > > > > MailCore scheme, I get the following error messages while
> > > > > SKIndexAddDocument is being executed.
> > > > >  
> > > > >  
> > > > >  
> > > > > 2014-10-23 11:05:58.377 search_test[35196:2180704] Error loading
> > > > > /System/Library/Spotlight/Mail.mdimporter/Contents/MacOS/Mail:
> > > > > dlopen(/System/Library/Spotlight/Mail.mdimporter/Contents/MacOS/Mail,
> > > > > 262):
> > > > > Symbol not found: _MCAccountTypeIMAP
> > > > > Referenced from:
> > > > > /System/Library/PrivateFrameworks/IMAP.framework/Versions/A/IMAP
> > > > > Expected in:
> > > > > /Users/ericgorr/Library/Developer/Xcode/DerivedData/search_test-bupoej
> > > > > zrhw
> > > > > zvwigjwigtdiebyqdq/Build/Products/Debug/MailCore.framework/Versions/A
> > > > > /Mai
> > > > > lCore in
> > > > > /System/Library/PrivateFrameworks/IMAP.framework/Versions/A/IMAP
> > > > > 2014-10-23 11:05:58.377 search_test[35196:2180704] Cannot find
> > > > > function pointer MailImporterPlugInFactory for factory
> > > > > 142C071E-A837-11D8-A224-0003930A8D8C in CFBundle/CFPlugIn 0x10010e970
> > > > > </System/Library/Spotlight/Mail.mdimporter> (bundle, not loaded)
> > > > > 2014-10-23 11:05:58.390 search_test[35196:2180704] Error loading
> > > > > /System/Library/Spotlight/Mail.mdimporter/Contents/MacOS/Mail:
> > > > > dlopen(/System/Library/Spotlight/Mail.mdimporter/Contents/MacOS/Mail,
> > > > > 262):
> > > > > Symbol not found: _MCAccountTypeIMAP
> > > > > Referenced from:
> > > > > /System/Library/PrivateFrameworks/IMAP.framework/Versions/A/IMAP
> > > > > Expected in:
> > > > > /Users/ericgorr/Library/Developer/Xcode/DerivedData/search_test-bupoej
> > > > > zrhw
> > > > > zvwigjwigtdiebyqdq/Build/Products/Debug/MailCore.framework/Versions/A
> > > > > /Mai
> > > > > lCore in
> > > > > /System/Library/PrivateFrameworks/IMAP.framework/Versions/A/IMAP
> > > > > 2014-10-23 11:05:58.390 search_test[35196:2180704] Cannot find
> > > > > function pointer MailImporterPlugInFactory for factory
> > > > > 142C071E-A837-11D8-A224-0003930A8D8C in CFBundle/CFPlugIn 0x10010e970
> > > > > </System/Library/Spotlight/Mail.mdimporter> (bundle, not loaded)
> > > > >  
> > > > >  
> > > > >  
> > > > >  
> > > > > I have no idea what might be happening. It would not seem to make any
> > > > > sense at all. If anyone has any ideas, I would be interested.
> > > > >  
> > > > > I am running OS X 10.10 and using Xcode 6.1.  

Re: [mailcoredev] Strange interaction with MailCore and Apple's Search Kit

From:
Developer
Date:
2014-10-23 @ 18:30
It might just be special-casing the framework, instead of a bundle ID or 
something.  I'd strings the binary to confirm.

~Robert Widmann

> On Oct 23, 2014, at 12:12 PM, Hoa V. Dinh <dinh.viet.hoa@gmail.com> wrote:
> 
> It’s weird though that it’s matching on the binary name.
> 
> -- 
> Hoa V. Dinh
> 
>> On Thursday, October 23, 2014 at 11:06 AM, Matt Ronge wrote:
>> 
>> Hilarious.
>> 
>> I just dumped the symbols to see if it was related in anyway. Looks 
like no, but instead Apple’s own internal “MailCore"
>> ―
>> Matt Ronge
>> Astro HQ
>> 
>>> On Oct 23, 2014, at 12:53 PM, eric g <mailist@ericgorr.net> wrote:
>>> 
>>> Yes, because the framework is still called MailCore.
>>> 
>>> You may want to consider a slight name change to at least the built
>>> framework to remove the conflict with Apple's new private framework also
>>> called MailCore.
>>> 
>>> 
>>>> On Thu, October 23, 2014 12:45 pm, Hoa V. Dinh wrote:
>>>> Is the same happening with MailCore2?
>>>> 
>>>> 
>>>> --
>>>> Hoa V. Dinh
>>>> 
>>>> 
>>>> 
>>>> O n Thursday, October 23, 2014 at 10:21 AM, eric g wrote:
>>>> 
>>>> 
>>>>> So, what appears to have happened with Yosemite, is that Apple now have
>>>>> its own private framework also called MailCore and in the process of
>>>>> calling SKIndexAddDoument, the OS was not using the one it should have
>>>>> been.
>>>>> 
>>>>> To fix this, I went to the build setting for the framework and simply
>>>>> changed the ProductName to something else. It all appears to be working.
>>>>> 
>>>>> 
>>>>> This Apple private framework appears to be new with Yosemite. If you
>>>>> are building a product which will be used on Yosemite machines, you will
>>>>> likely need to employ this solution.
>>>>> 
>>>>> If someone has a better solution, I would be interested.
>>>>> 
>>>>> 
>>>>>> On Thu, October 23, 2014 10:38 am, eric g wrote:
>>>>>> 
>>>>>> I have a sample test project at:
>>>>>> 
>>>>>> 
>>>>>> 
>>>>>> http://ericgorr.net/cocoadev/search_test_2.zip
>>>>>> 
>>>>>> 
>>>>>> 
>>>>>> However, since the MailCore and MailCore2 source is so large, I
>>>>>> haven't included it.
>>>>>> 
>>>>>> The sample OS X test application does not link against MailCore. I
>>>>>> have only added the MailCore Xcode project to the search_test project.
>>>>>> However,
>>>>>> when I run it, after merely building the MailCore framework using the
>>>>>> MailCore scheme, I get the following error messages while
>>>>>> SKIndexAddDocument is being executed.
>>>>>> 
>>>>>> 
>>>>>> 
>>>>>> 2014-10-23 11:05:58.377 search_test[35196:2180704] Error loading
>>>>>> /System/Library/Spotlight/Mail.mdimporter/Contents/MacOS/Mail:
>>>>>> dlopen(/System/Library/Spotlight/Mail.mdim porter/Contents/MacOS/Mail,
>>>>>> 262):
>>>>>> Symbol not found: _MCAccountTypeIMAP
>>>>>> Referenced from:
>>>>>> /System/Library/PrivateFrameworks/IMAP.framework/Versions/A/IMAP
>>>>>> Expected in:
>>>>>> /Users/ericgorr/Library/Developer/Xcode/DerivedData/search_test-bupoej
>>>>>> zrhw
>>>>>> zvwigjwigtdiebyqdq/Build/Products/Debug/MailCore.framework/Versions/A
>>>>>> /Mai
>>>>>> lCore in
>>>>>> /System/Library/PrivateFrameworks/IMAP.framework/Versions/A/IMAP
>>>>>> 2014-10-23 11:05:58.377 search_test[35196:2180704] Cannot find
>>>>>> function pointer MailImporterPlugInFactory for factory
>>>>>> 142C071E-A837-11D8-A224-0003930A8D8C in CFBundle/CFPlugIn 0x10010e970
>>>>>> </System/Library/Spotlight/Mail.mdimporter> (bundle, not loaded)
>>>>>> 2014-10-23 11:05:58.390 search_test[35196:2180704] Error loading
>>>>>> /System/Library/Spotlight/Mail.mdimporter/Contents/MacOS/Mail:
>>>>>> dlopen(/System/Library/Spotlight/Mail.m dimporter/Contents/MacOS/Mail,
>>>>>> 262):
>>>>>> Symbol not found: _MCAccountTypeIMAP
>>>>>> Referenced from:
>>>>>> /System/Library/PrivateFrameworks/IMAP.framework/Versions/A/IMAP
>>>>>> Expected in:
>>>>>> /Users/ericgorr/Library/Developer/Xcode/DerivedData/search_test-bupoej
>>>>>> zrhw
>>>>>> zvwigjwigtdiebyqdq/Build/Products/Debug/MailCore.framework/Versions/A
>>>>>> /Mai
>>>>>> lCore in
>>>>>> /System/Library/PrivateFrameworks/IMAP.framework/Versions/A/IMAP
>>>>>> 2014-10-23 11:05:58.390 search_test[35196:2180704] Cannot find
>>>>>> function pointer MailImporterPlugInFactory for factory
>>>>>> 142C071E-A837-11D8-A224-0003930A8D8C in CFBundle/CFPlugIn 0x10010e970
>>>>>> </System/Library/Spotlight/Mail.mdimporter> (bundle, not loaded)
>>>>>> 
>>>>>> 
>>>>>> 
>>>>>> 
>>>>>> I have no idea what might be happening. It would not seem to make any
>>>>>> sense at all. If anyone has any ideas, I wou ld be interested.
>>>>>> 
>>>>>> I am running OS X 10.10 and using Xcode 6.1.
> 

Re: [mailcoredev] Strange interaction with MailCore and Apple's Search Kit

From:
Hoa V. Dinh
Date:
2014-10-31 @ 20:16
I think that one quick workaround would be to link against the static 
library instead of using the framework version.  

--  
Hoa V. Dinh


On Thursday, October 23, 2014 at 11:30 AM, Developer wrote:

> It might just be special-casing the framework, instead of a bundle ID or
something.  I'd strings the binary to confirm.
>  
> ~Robert Widmann
>  
>  
> On Oct 23, 2014, at 12:12 PM, Hoa V. Dinh <dinh.viet.hoa@gmail.com 
(mailto:dinh.viet.hoa@gmail.com)> wrote:
>  
>  
>  
> > It’s weird though that it’s matching on the binary name.  
> >  
> > --  
> > Hoa V. Dinh
> >  
> >  
> > On Thursday, October 23, 2014 at 11:06 AM, Matt Ronge wrote:
> >  
> > > Hilarious.
> > >  
> > > I just dumped the symbols to see if it was related in anyway. Looks 
like no, but instead Apple’s own internal “MailCore"
> > > —
> > > Matt Ronge
> > > Astro HQ
> > >  
> > > > On Oct 23, 2014, at 12:53 PM, eric g <mailist@ericgorr.net 
(mailto:mailist@ericgorr.net)> wrote:
> > > >  
> > > > Yes, because the framework is still called MailCore.
> > > >  
> > > > You may want to consider a slight name change to at least the built
> > > > framework to remove the conflict with Apple's new private framework also
> > > > called MailCore.
> > > >  
> > > >  
> > > > On Thu, October 23, 2014 12:45 pm, Hoa V. Dinh wrote:
> > > > > Is the same happening with MailCore2?
> > > > >  
> > > > >  
> > > > > --
> > > > > Hoa V. Dinh
> > > > >  
> > > > >  
> > > > >  
> > > > > O n Thursday, October 23, 2014 at 10:21 AM, eric g wrote:
> > > > >  
> > > > >  
> > > > > > So, what appears to have happened with Yosemite, is that Apple
now have
> > > > > > its own private framework also called MailCore and in the process of
> > > > > > calling SKIndexAddDoument, the OS was not using the one it should have
> > > > > > been.
> > > > > >  
> > > > > > To fix this, I went to the build setting for the framework and simply
> > > > > > changed the ProductName to something else. It all appears to 
be working.
> > > > > >  
> > > > > >  
> > > > > > This Apple private framework appears to be new with Yosemite. If you
> > > > > > are building a product which will be used on Yosemite 
machines, you will
> > > > > > likely need to employ this solution.
> > > > > >  
> > > > > > If someone has a better solution, I would be interested.
> > > > > >  
> > > > > >  
> > > > > > On Thu, October 23, 2014 10:38 am, eric g wrote:
> > > > > >  
> > > > > > > I have a sample test project at:
> > > > > > >  
> > > > > > >  
> > > > > > >  
> > > > > > > http://ericgorr.net/cocoadev/search_test_2.zip
> > > > > > >  
> > > > > > >  
> > > > > > >  
> > > > > > > However, since the MailCore and MailCore2 source is so large, I
> > > > > > > haven't included it.
> > > > > > >  
> > > > > > > The sample OS X test application does not link against MailCore. I
> > > > > > > have only added the MailCore Xcode project to the 
search_test project.
> > > > > > > However,
> > > > > > > when I run it, after merely building the MailCore framework 
using the
> > > > > > > MailCore scheme, I get the following error messages while
> > > > > > > SKIndexAddDocument is being executed.
> > > > > > >  
> > > > > > >  
> > > > > > >  
> > > > > > > 2014-10-23 11:05:58.377 search_test[35196:2180704] Error loading
> > > > > > > /System/Library/Spotlight/Mail.mdimporter/Contents/MacOS/Mail:
> > > > > > > dlopen(/System/Library/Spotlight/Mail.mdim 
porter/Contents/MacOS/Mail,
> > > > > > > 262):
> > > > > > > Symbol not found: _MCAccountTypeIMAP
> > > > > > > Referenced from:
> > > > > > > /System/Library/PrivateFrameworks/IMAP.framework/Versions/A/IMAP
> > > > > > > Expected in:
> > > > > > > 
/Users/ericgorr/Library/Developer/Xcode/DerivedData/search_test-bupoej
> > > > > > > zrhw
> > > > > > > 
zvwigjwigtdiebyqdq/Build/Products/Debug/MailCore.framework/Versions/A
> > > > > > > /Mai
> > > > > > > lCore in
> > > > > > > /System/Library/PrivateFrameworks/IMAP.framework/Versions/A/IMAP
> > > > > > > 2014-10-23 11:05:58.377 search_test[35196:2180704] Cannot find
> > > > > > > function pointer MailImporterPlugInFactory for factory
> > > > > > > 142C071E-A837-11D8-A224-0003930A8D8C in CFBundle/CFPlugIn 
0x10010e970
> > > > > > > </System/Library/Spotlight/Mail.mdimporter> (bundle, not loaded)
> > > > > > > 2014-10-23 11:05:58.390 search_test[35196:2180704] Error loading
> > > > > > > /System/Library/Spotlight/Mail.mdimporter/Contents/MacOS/Mail:
> > > > > > > dlopen(/System/Library/Spotlight/Mail.m 
dimporter/Contents/MacOS/Mail,
> > > > > > > 262):
> > > > > > > Symbol not found: _MCAccountTypeIMAP
> > > > > > > Referenced from:
> > > > > > > /System/Library/PrivateFrameworks/IMAP.framework/Versions/A/IMAP
> > > > > > > Expected in:
> > > > > > > 
/Users/ericgorr/Library/Developer/Xcode/DerivedData/search_test-bupoej
> > > > > > > zrhw
> > > > > > > 
zvwigjwigtdiebyqdq/Build/Products/Debug/MailCore.framework/Versions/A
> > > > > > > /Mai
> > > > > > > lCore in
> > > > > > > /System/Library/PrivateFrameworks/IMAP.framework/Versions/A/IMAP
> > > > > > > 2014-10-23 11:05:58.390 search_test[35196:2180704] Cannot find
> > > > > > > function pointer MailImporterPlugInFactory for factory
> > > > > > > 142C071E-A837-11D8-A224-0003930A8D8C in CFBundle/CFPlugIn 
0x10010e970
> > > > > > > </System/Library/Spotlight/Mail.mdimporter> (bundle, not loaded)
> > > > > > >  
> > > > > > >  
> > > > > > >  
> > > > > > >  
> > > > > > > I have no idea what might be happening. It would not seem to
make any
> > > > > > > sense at all. If anyone has any ideas, I wou ld be interested.
> > > > > > >  
> > > > > > > I am running OS X 10.10 and using Xcode 6.1.  
> >