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

Xcode 9 and 10 need some stubs #445

Closed
woachk opened this issue Oct 23, 2018 · 15 comments

Comments

Projects
None yet
3 participants
@woachk
Copy link
Contributor

commented Oct 23, 2018

This prevents running Xcode 9 CLI tools or any other recent Swift version.

@Dekken

This comment has been minimized.

Copy link

commented Jan 3, 2019

seconded

Darling [/Volumes/SystemRoot/home/philix/tmp/darling/autoconf-2.69]$ make
dyld: Symbol not found: _NSAffectedObjectsErrorKey
  Referenced from: /Volumes/SystemRoot/opt/chain/Xcode.app/Contents/SharedFrameworks/DVTFoundation.framework/Versions/A/../../../../Frameworks/libswiftCoreData.dylib (which was built for Mac OS X 10.9)
  Expected in: /System/Library/Frameworks/CoreData.framework/Versions/A/CoreData
 in /Volumes/SystemRoot/opt/chain/Xcode.app/Contents/SharedFrameworks/DVTFoundation.framework/Versions/A/../../../../Frameworks/libswiftCoreData.dylib
Abort trap: 6
@Dekken

This comment has been minimized.

Copy link

commented Jan 3, 2019

XCode comes with a version of make, so I just replaced the "system" one with that.

@Dekken

This comment has been minimized.

Copy link

commented Jan 4, 2019

There's more

NSAffectedObjectsErrorKey
NSPersistentStoreSaveConflictsErrorKey
NSValidationKeyErrorKey
NSValidationObjectErrorKey
NSValidationPredicateErrorKey
NSValidationValueErrorKey

and now also

dyld: Symbol not found: _OBJC_CLASS_$_NSMergeConflict```

@ahyattdev ahyattdev self-assigned this Jan 4, 2019

ahyattdev added a commit to darlinghq/darling-cocotron that referenced this issue Jan 4, 2019

@ahyattdev

This comment has been minimized.

Copy link
Member

commented Jan 4, 2019

Next ones needed:

dyld: Symbol not found: __xpc_event_key_name
  Referenced from: /Volumes/SystemRoot/media/sf_Applications/Xcode.app/Contents/MacOS/../Frameworks/libswiftXPC.dylib (which was built for Mac OS X 10.9)
  Expected in: /usr/lib/libSystem.B.dylib
 in /Volumes/SystemRoot/media/sf_Applications/Xcode.app/Contents/MacOS/../Frameworks/libswiftXPC.dylib

@ahyattdev ahyattdev changed the title _NSAffectedObjectsErrorKey not being implemented in CoreData Xcode 9 and 10 need some stubs Jan 4, 2019

@Dekken

This comment has been minimized.

Copy link

commented Jan 5, 2019

I'm quite ignorant to the internals of all this, but I recall using the same version of XCode previously and not having such problems - maybe I'm mistaken/confused

thanks for your time @ahyattdev

@ahyattdev

This comment has been minimized.

Copy link
Member

commented Jan 5, 2019

Hi Dekken,

I am going off of all the symbols that the main 'Xcode' application executable relies on here. I'm not sure exactly which program is being run that creates this issue but hopefully this also fixes that.

ahyattdev added a commit to darlinghq/darling-libxpc that referenced this issue Jan 5, 2019

ahyattdev added a commit to darlinghq/darling-foundation that referenced this issue Jan 5, 2019

ahyattdev added a commit that referenced this issue Jan 5, 2019

@ahyattdev

This comment has been minimized.

Copy link
Member

commented Jan 5, 2019

Next is _kSecAttrAccess.

ahyattdev added a commit to darlinghq/darling-security that referenced this issue Jan 6, 2019

Fix _kSecAttrAccess not being exported
The issue is that the exported symbols list from Apple is
preprocessed. For whatever reason, it isn't being properly
preprocessed. The solution was to join the #included
ones together manually and get rid of the #if, etc.
The result of this is SEC_MANUAL.exp.

darlinghq/darling#445

ahyattdev added a commit that referenced this issue Jan 6, 2019

ahyattdev added a commit that referenced this issue Jan 6, 2019

@ahyattdev

This comment has been minimized.

Copy link
Member

commented Jan 6, 2019

Next is _NSAccessibilityActivationPointAttribute, in AppKit.

ahyattdev added a commit to darlinghq/darling-cocotron that referenced this issue Jan 6, 2019

@ahyattdev

This comment has been minimized.

Copy link
Member

commented Jan 6, 2019

Next is _NSAccessibilitySupportsMainThreadIdleNotificationAttribute, in AppKit

ahyattdev added a commit to darlinghq/darling-cocotron that referenced this issue Jan 6, 2019

ahyattdev added a commit that referenced this issue Jan 7, 2019

ahyattdev added a commit to darlinghq/darling-foundation that referenced this issue Jan 7, 2019

ahyattdev added a commit to darlinghq/darling-cocotron that referenced this issue Jan 7, 2019

ahyattdev added a commit to darlinghq/darling-foundation that referenced this issue Jan 7, 2019

ahyattdev added a commit that referenced this issue Jan 7, 2019

@ahyattdev

This comment has been minimized.

Copy link
Member

commented Jan 7, 2019

Next is _kCGWindowAlpha, in CoreGraphics. I will be away for a few days, will pick up later.

ahyattdev added a commit to darlinghq/darling-cocotron that referenced this issue Jan 9, 2019

ahyattdev added a commit to darlinghq/darling-foundation that referenced this issue Jan 9, 2019

ahyattdev added a commit to darlinghq/darling-cocotron that referenced this issue Jan 10, 2019

ahyattdev added a commit to darlinghq/darling-cocotron that referenced this issue Jan 10, 2019

ahyattdev added a commit that referenced this issue Jan 10, 2019

CoreServices and ImageIO constants (#445)
Also update QuartzCore and Foundation

ahyattdev added a commit to darlinghq/darling-foundation that referenced this issue Jan 10, 2019

ahyattdev added a commit to darlinghq/darling-foundation that referenced this issue Jan 10, 2019

ahyattdev added a commit that referenced this issue Jan 10, 2019

More Foundation classes (#445)
Also update stub generator
@ahyattdev

This comment has been minimized.

Copy link
Member

commented Jan 10, 2019

Next is _OBJC_CLASS_$_NSScriptCommand in Foundation.

@ahyattdev ahyattdev added this to the Xcode milestone Jan 11, 2019

ahyattdev added a commit to darlinghq/darling-foundation that referenced this issue Jan 16, 2019

Missing Foundation classes
NSScriptCommand and NSScriptCommandDescription
darlinghq/darling#445

ahyattdev added a commit to darlinghq/darling-cocotron that referenced this issue Jan 16, 2019

ahyattdev added a commit to darlinghq/darling-cocotron that referenced this issue Jan 16, 2019

ahyattdev added a commit that referenced this issue Jan 16, 2019

ahyattdev added a commit that referenced this issue Jan 16, 2019

ahyattdev added a commit that referenced this issue Jan 16, 2019

ahyattdev added a commit that referenced this issue Jan 16, 2019

@ahyattdev

This comment has been minimized.

Copy link
Member

commented Jan 16, 2019

Next is _OBJC_CLASS_$_CAReplicatorLayer in QuartzCore.

ahyattdev added a commit to darlinghq/darling-foundation that referenced this issue Jan 16, 2019

ahyattdev added a commit to darlinghq/darling-cocotron that referenced this issue Jan 16, 2019

ahyattdev added a commit to darlinghq/darling-cocotron that referenced this issue Jan 16, 2019

ahyattdev added a commit that referenced this issue Jan 16, 2019

@ahyattdev

This comment has been minimized.

Copy link
Member

commented Jan 16, 2019

Next is _NSAnimateBinding in AppKit.

ahyattdev added a commit to darlinghq/darling-cocotron that referenced this issue Mar 17, 2019

ahyattdev added a commit that referenced this issue Mar 17, 2019

@ahyattdev ahyattdev closed this in 439fc98 Mar 17, 2019

@ahyattdev

This comment has been minimized.

Copy link
Member

commented Mar 17, 2019

Xcode 10 finally has all the symbols it wants before it starts executing any code. It of course does not work yet, but that is outside of the scope of this issue.

For those who are curious, this is what happens when it is run:

objc[23]: Class CIAffineTransform is implemented in both /System/Library/Frameworks/CoreImage.framework/Versions/A/CoreImage (0x7ffff01a3b20) and /System/Library/Frameworks/QuartzCore.framework/Versions/A/QuartzCore (0x7ffff36e4860). One of the two will be used. Which one is undefined.
Assertion failed: (isRealized()), function isMetaClass, file /home/andrewhyatt/darling/src/external/objc4/runtime/objc-runtime-new.h, line 1221.
Abort trap: 6 (core dumped)
@ahyattdev

This comment has been minimized.

Copy link
Member

commented Mar 17, 2019

Related is #488.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.