Skip to content

can not work #11

Open
Open

Description

@XingZhiKe

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.

Activity

  1. mattstevens commented on Apr 24, 2019

    @mattstevens
    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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions