Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

can not work #11

Open
XingZhiKe opened this issue Apr 23, 2019 · 1 comment
Open

can not work #11

XingZhiKe opened this issue Apr 23, 2019 · 1 comment

Comments

@XingZhiKe
Copy link

hi, I want do something to check if the framework api has change.
Luchly, I find this repo and I try to use this tool.
But, I find some issues. And I don't know how to use it.

one example is "/Users/XXX/Library/Developer/Xcode/DerivedData/OCDiff-hikvzhfsgbawgecwoclndvotqloi/Build/Products/Debug/objc-diff --sdk iphonesimulator --new /Users/XXX/TTTManager/1.0.7/TTT.framework --html apidiff"
And I find some error,like this:

  1. XXXXXXXX.h:40:4: error: expected a type;
    the type is CGFloat,which in system framework
    2.XXXXXXXX.h:20:1: error: unknown type name 'UIKIT_EXTERN'
    UIKIT_EXTERN is a macro which in system framework

Can you write same example which use --args to specific header search path.
I use "--newargs -I/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers"
to find CGFloat.

@mattstevens
Copy link
Owner

Do your framework headers #import all of their dependencies, or do they depend on the use of a prefix header? If the headers make use of declarations from CoreGraphics or UIKit but do not import headers for those frameworks you may see errors like this.

You can update the framework headers to import their dependencies so they can compile on their own, or you can use a prefix header with objc-diff by passing --args -include /path/to/PrefixHeader.pch.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants