Skip to content
This repository has been archived by the owner on May 5, 2021. It is now read-only.

13 Errors Generated #4

Open
CoryKornowicz opened this issue Mar 20, 2016 · 1 comment
Open

13 Errors Generated #4

CoryKornowicz opened this issue Mar 20, 2016 · 1 comment

Comments

@CoryKornowicz
Copy link

Maczilla:Multiplexer-master Cory$ make package

Making all for tweak ReachApp…
==> Preprocessing Tweak.xm…
==> Compiling Tweak.xm (armv7)…
In file included from Tweak.xm:2:
In file included from /Users/Cory/Desktop/Multiplexer-master/headers.h:6:
In file included from /opt/theos/vendor/include/SpringBoard/SBIconImageView.h:9:
/opt/theos/vendor/include/SpringBoard/SpringBoard-Structs.h:9:16: error:
redefinition of 'CGSize'
typedef struct CGSize {
^
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS9.0.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CGGeometry.h:28:8: note:
previous definition is here
struct CGSize {
^
In file included from Tweak.xm:2:
In file included from /Users/Cory/Desktop/Multiplexer-master/headers.h:6:
In file included from /opt/theos/vendor/include/SpringBoard/SBIconImageView.h:9:
/opt/theos/vendor/include/SpringBoard/SpringBoard-Structs.h:14:16: error:
redefinition of 'CGPoint'
typedef struct CGPoint {
^
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS9.0.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CGGeometry.h:20:8: note:
previous definition is here
struct CGPoint {
^
In file included from Tweak.xm:2:
In file included from /Users/Cory/Desktop/Multiplexer-master/headers.h:6:
In file included from /opt/theos/vendor/include/SpringBoard/SBIconImageView.h:9:
/opt/theos/vendor/include/SpringBoard/SpringBoard-Structs.h:19:16: error:
redefinition of 'CGRect'
typedef struct CGRect {
^
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS9.0.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CGGeometry.h:46:8: note:
previous definition is here
struct CGRect {
^
In file included from Tweak.xm:2:
In file included from /Users/Cory/Desktop/Multiplexer-master/headers.h:6:
In file included from /opt/theos/vendor/include/SpringBoard/SBIconImageView.h:9:
/opt/theos/vendor/include/SpringBoard/SpringBoard-Structs.h:26:29: error:
typedef redefinition with different types ('struct __CFBoolean _' vs
'const struct __CFBoolean *')
typedef struct _CFBoolean CFBooleanRef;
^
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS9.0.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CFNumber.h:13:62: note:
previous definition is here
typedef const struct CF_BRIDGED_TYPE(NSNumber) __CFBoolean * CFBooleanRef;
^
In file included from Tweak.xm:2:
In file included from /Users/Cory/Desktop/Multiplexer-master/headers.h:6:
In file included from /opt/theos/vendor/include/SpringBoard/SBIconImageView.h:9:
/opt/theos/vendor/include/SpringBoard/SpringBoard-Structs.h:40:16: error:
redefinition of 'UIEdgeInsets'
typedef struct UIEdgeInsets {
^
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS9.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIGeometry.h:15:16: note:
previous definition is here
typedef struct UIEdgeInsets {
^
In file included from Tweak.xm:2:
In file included from /Users/Cory/Desktop/Multiplexer-master/headers.h:6:
In file included from /opt/theos/vendor/include/SpringBoard/SBIconImageView.h:9:
/opt/theos/vendor/include/SpringBoard/SpringBoard-Structs.h:60:28: error:
typedef redefinition with different types ('struct __CFString _' vs 'const
struct __CFString *')
typedef struct _CFString CFStringRef;
^
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS9.0.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CFBase.h:430:61: note:
previous definition is here
typedef const struct CF_BRIDGED_TYPE(NSString) __CFString * CFStringRef;
^
In file included from Tweak.xm:2:
In file included from /Users/Cory/Desktop/Multiplexer-master/headers.h:6:
In file included from /opt/theos/vendor/include/SpringBoard/SBIconImageView.h:9:
/opt/theos/vendor/include/SpringBoard/SpringBoard-Structs.h:95:32: error:
typedef redefinition with different types ('struct __CFDictionary _' vs
'const struct __CFDictionary *')
typedef struct _CFDictionary CFDictionaryRef;
^
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS9.0.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CFDictionary.h:181:69: note:
previous definition is here
typedef const struct CF_BRIDGED_TYPE(NSDictionary) __CFDictionary * CFDictionary...
^
In file included from Tweak.xm:2:
In file included from /Users/Cory/Desktop/Multiplexer-master/headers.h:6:
In file included from /opt/theos/vendor/include/SpringBoard/SBIconImageView.h:9:
/opt/theos/vendor/include/SpringBoard/SpringBoard-Structs.h:110:16: error:
definition of type 'NSRange' conflicts with typedef of the same name
typedef struct NSRange {
^
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS9.0.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSRange.h:15:3: note:
'NSRange' declared here
} NSRange;
^
In file included from Tweak.xm:2:
In file included from /Users/Cory/Desktop/Multiplexer-master/headers.h:6:
In file included from /opt/theos/vendor/include/SpringBoard/SBIconImageView.h:9:
/opt/theos/vendor/include/SpringBoard/SpringBoard-Structs.h:117:12: error:
field has incomplete type '__CFArray'
__CFArray field2;
^
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS9.0.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CFArray.h:108:47: note:
forward declaration of '__CFArray'
typedef const struct CF_BRIDGED_TYPE(NSArray) __CFArray * CFArrayRef;
^
In file included from Tweak.xm:2:
In file included from /Users/Cory/Desktop/Multiplexer-master/headers.h:6:
In file included from /opt/theos/vendor/include/SpringBoard/SBIconImageView.h:9:
/opt/theos/vendor/include/SpringBoard/SpringBoard-Structs.h:150:16: error:
redefinition of 'CGAffineTransform'
typedef struct CGAffineTransform {
^
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS9.0.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CGAffineTransform.h:15:8: note:
previous definition is here
struct CGAffineTransform {
^
In file included from Tweak.xm:2:
In file included from /Users/Cory/Desktop/Multiplexer-master/headers.h:6:
In file included from /opt/theos/vendor/include/SpringBoard/SBIconImageView.h:9:
/opt/theos/vendor/include/SpringBoard/SpringBoard-Structs.h:225:27: error:
typedef redefinition with different types ('struct __CFArray _' vs 'const
struct __CFArray *')
typedef struct _CFArray CFArrayRef;
^
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS9.0.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CFArray.h:108:59: note:
previous definition is here
typedef const struct CF_BRIDGED_TYPE(NSArray) __CFArray * CFArrayRef;
^
In file included from Tweak.xm:2:
In file included from /Users/Cory/Desktop/Multiplexer-master/headers.h:6:
/opt/theos/vendor/include/SpringBoard/SBIconImageView.h:35:41: error: property
type 'unsigned long long' is incompatible with type 'NSUInteger'
(aka 'unsigned int') inherited from 'NSObject'
[-Werror,-Wincompatible-property-type]
@Property (readonly) unsigned long long hash;
^
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS9.0.sdk/usr/include/objc/NSObject.h:18:33: note:
property declared here
@Property (readonly) NSUInteger hash;
^
In file included from Tweak.xm:2:
/Users/Cory/Desktop/Multiplexer-master/headers.h:21:9: fatal error:
'IOKit/hid/IOHIDEvent.h' file not found

import <IOKit/hid/IOHIDEvent.h>

    ^

13 errors generated.
make[3]: *** [/Users/Cory/Desktop/Multiplexer-master/.theos/obj/debug/armv7/Tweak.xm.d2760aa6.o] Error 1
make[2]: *** [/Users/Cory/Desktop/Multiplexer-master/.theos/obj/debug/armv7/ReachApp.dylib] Error 2
make[1]: *** [internal-library-all_] Error 2
make: *** [ReachApp.all.tweak.variables] Error 2

@efrederickson
Copy link
Owner

Those are header issues:

  1. Duplicate structs - you need to "flush" out and remove those duplicates from one set of headers.
  2. IOKit/hid headers - copy the ones from the MacOS headers to $THEOS/include/IOKit/hid

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

No branches or pull requests

2 participants