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
Closed

Xcode 9 and 10 need some stubs #445

woachk opened this issue Oct 23, 2018 · 15 comments
Assignees
Milestone

Comments

@woachk
Copy link
Contributor

@woachk woachk commented Oct 23, 2018

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

@PhilipDeegan
Copy link

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

@PhilipDeegan
Copy link

@PhilipDeegan PhilipDeegan commented Jan 3, 2019

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

@PhilipDeegan
Copy link

@PhilipDeegan PhilipDeegan 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 pushed a commit to darlinghq/darling-cocotron that referenced this issue Jan 4, 2019
@ahyattdev
Copy link
Member

@ahyattdev ahyattdev 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
@PhilipDeegan
Copy link

@PhilipDeegan PhilipDeegan 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
Copy link
Member

@ahyattdev ahyattdev 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 pushed a commit to darlinghq/darling-libxpc that referenced this issue Jan 5, 2019
ahyattdev pushed a commit to darlinghq/darling-foundation that referenced this issue Jan 5, 2019
ahyattdev pushed a commit that referenced this issue Jan 5, 2019
@ahyattdev
Copy link
Member

@ahyattdev ahyattdev commented Jan 5, 2019

Next is _kSecAttrAccess.

ahyattdev pushed a commit to darlinghq/darling-security that referenced this issue Jan 6, 2019
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 pushed a commit that referenced this issue Jan 6, 2019
ahyattdev pushed a commit that referenced this issue Jan 6, 2019
@ahyattdev
Copy link
Member

@ahyattdev ahyattdev commented Jan 6, 2019

Next is _NSAccessibilityActivationPointAttribute, in AppKit.

ahyattdev pushed a commit to darlinghq/darling-cocotron that referenced this issue Jan 6, 2019
@ahyattdev
Copy link
Member

@ahyattdev ahyattdev commented Jan 6, 2019

Next is _NSAccessibilitySupportsMainThreadIdleNotificationAttribute, in AppKit

ahyattdev pushed a commit to darlinghq/darling-cocotron that referenced this issue Jan 6, 2019
ahyattdev pushed a commit that referenced this issue Jan 7, 2019
ahyattdev pushed a commit to darlinghq/darling-foundation that referenced this issue Jan 7, 2019
ahyattdev pushed a commit to darlinghq/darling-cocotron that referenced this issue Jan 7, 2019
ahyattdev pushed a commit to darlinghq/darling-foundation that referenced this issue Jan 7, 2019
ahyattdev pushed a commit that referenced this issue Jan 7, 2019
@ahyattdev
Copy link
Member

@ahyattdev ahyattdev commented Jan 7, 2019

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

ahyattdev pushed a commit to darlinghq/darling-cocotron that referenced this issue Jan 9, 2019
ahyattdev pushed a commit to darlinghq/darling-foundation that referenced this issue Jan 9, 2019
ahyattdev pushed a commit to darlinghq/darling-cocotron that referenced this issue Jan 10, 2019
ahyattdev pushed a commit to darlinghq/darling-cocotron that referenced this issue Jan 10, 2019
ahyattdev pushed a commit that referenced this issue Jan 10, 2019
Also update QuartzCore and Foundation
ahyattdev pushed a commit that referenced this issue Jan 10, 2019
ahyattdev pushed a commit to darlinghq/darling-foundation that referenced this issue Jan 10, 2019
ahyattdev pushed a commit to darlinghq/darling-foundation that referenced this issue Jan 10, 2019
ahyattdev pushed a commit that referenced this issue Jan 10, 2019
Also update stub generator
@ahyattdev
Copy link
Member

@ahyattdev ahyattdev commented Jan 10, 2019

Next is _OBJC_CLASS_$_NSScriptCommand in Foundation.

@ahyattdev ahyattdev added this to the Xcode milestone Jan 11, 2019
ahyattdev pushed a commit to darlinghq/darling-foundation that referenced this issue Jan 16, 2019
NSScriptCommand and NSScriptCommandDescription
darlinghq/darling#445
ahyattdev pushed a commit to darlinghq/darling-cocotron that referenced this issue Jan 16, 2019
ahyattdev pushed a commit to darlinghq/darling-cocotron that referenced this issue Jan 16, 2019
ahyattdev pushed a commit that referenced this issue Jan 16, 2019
ahyattdev pushed a commit that referenced this issue Jan 16, 2019
ahyattdev pushed a commit that referenced this issue Jan 16, 2019
ahyattdev pushed a commit that referenced this issue Jan 16, 2019
@ahyattdev
Copy link
Member

@ahyattdev ahyattdev commented Jan 16, 2019

Next is _OBJC_CLASS_$_CAReplicatorLayer in QuartzCore.

ahyattdev pushed a commit to darlinghq/darling-foundation that referenced this issue Jan 16, 2019
ahyattdev pushed a commit to darlinghq/darling-cocotron that referenced this issue Jan 16, 2019
ahyattdev pushed a commit to darlinghq/darling-cocotron that referenced this issue Jan 16, 2019
ahyattdev pushed a commit that referenced this issue Jan 16, 2019
@ahyattdev
Copy link
Member

@ahyattdev ahyattdev commented Jan 16, 2019

Next is _NSAnimateBinding in AppKit.

ahyattdev pushed a commit to darlinghq/darling-cocotron that referenced this issue Mar 17, 2019
ahyattdev pushed a commit that referenced this issue Mar 17, 2019
@ahyattdev ahyattdev closed this in 439fc98 Mar 17, 2019
@ahyattdev
Copy link
Member

@ahyattdev ahyattdev 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
Copy link
Member

@ahyattdev ahyattdev 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
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
3 participants