Importing CoreTelephony into Xcode
Opened this issue · 0 comments
Hello.
I'm trying to develop an app(won't make it to the AppStore) via Xcode(v7.1 beta 3) which will use the dumbed CoreTelephony headers.
I've copied(replaced the dumbed ones with the public ones) the CoreTelephony headers to the following location:
/Applications/Xcode-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/CoreTelephony.framework/Headers
I started a test project, added CoreTelephony to the Linked Frameworks and Libraries
, tried importing a header but Xcode was still seeing the old ones. The dumbed headers for CoreTelephony count to 16 where Apple provides 8. So I added the following path to the Framework Search Paths
.
/Applications/Xcode-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/
At first, this seemed irrelevant since this is the default location Xcode looks for frameworks and libraries. When this got added, I got an error message complaining about not being able to build module 'CoreTelephony'. This time, I set Enable Modules(C and Objective-C)
to No. I got rid of the previous error but now I'm getting the error: Expected selector for Objective-C method
for the methods below:
- (id).cxx_construct;
- (void).cxx_destruct;
Also a bunch of warnings complaining about type of property not matching the type of accessor.
What am I to do in order to successfully use these headers inside Xcode?
Thanks.