Jump to content
Slice

New Xcode9, 10, 11

33 posts in this topic

Recommended Posts

Welcome to Xcode 9A235!

This is next Apple's fault.

There is impossible to search substring.

attachicon.gifСнимок экрана 2017-09-22 в 5.48.29.png

See: string found in wrong place.

Anyone knows a solution?

 

It is likely due to weird newline characters in the file.

I suspect there is some Windows CR+LF line terminators in that file which throws off the line counting algorithm in this version of the Xcode editor.

 

In Xcode->Preferences->Text Editing, you can set Default line endings=macOS/Unix, and check "Convert existing files on save", and this will correct the line terminators (converting CR+LF into LF), which will bring things back in line.  That will cause huge diffs though.

 

I think the EDK2 and Clover files are full of Windows CR/LF combinations (a bit of a mix actually).

 

I have a Clover.xcodeproj too... I saved a copy of Xcode 8.3.3 prior to updating as Xcode833.app.  I can load it with 'open -a Xcode833 Clover.xcodeproj'.  Xcode 8.3.3 deals with CR/LF combos correctly.

Share this post

It is likely due to weird newline characters in the file.

I suspect there is some Windows CR+LF line terminators in that file which throws off the line counting algorithm in this version of the Xcode editor.

 

In Xcode->Preferences->Text Editing, you can set Default line endings=macOS/Unix, and check "Convert existing files on save", and this will correct the line terminators (converting CR+LF into LF), which will bring things back in line.  That will cause huge diffs though.

 

I think the EDK2 and Clover files are full of Windows CR/LF combinations (a bit of a mix actually).

 

I have a Clover.xcodeproj too... I saved a copy of Xcode 8.3.3 prior to updating as Xcode833.app.  I can load it with 'open -a Xcode833 Clover.xcodeproj'.  Xcode 8.3.3 deals with CR/LF combos correctly.

No, all files in Clover folder already corrected to LF. I manually excluded LF+CR times ago.

But I think there is a problem with TAB characters.

Yes, Xcode 8.3.3 works fine.

Share this post

No, all files in Clover folder already corrected to LF. I manually excluded LF+CR times ago.

But I think there is a problem with TAB characters.

 

Wrong.

I had already checked it.

Interesting that you dismiss what I write as wrong... without actually checking it.

 

SPEEDY-NUC:FlatDevTree rehabman$ pwd
/Users/rehabman/Projects/cloverefiboot-code/OsxAptioFixDrv/FlatDevTree
SPEEDY-NUC:FlatDevTree rehabman$ head device_tree.h |xxd
00000000: 0d0a 2f2a 0d0a 202a 2043 6f70 7972 6967  ../*.. * Copyrig
00000010: 6874 2028 6329 2032 3030 3020 4170 706c  ht (c) 2000 Appl
00000020: 6520 436f 6d70 7574 6572 2c20 496e 632e  e Computer, Inc.
00000030: 2041 6c6c 2072 6967 6874 7320 7265 7365   All rights rese
00000040: 7276 6564 2e0d 0a20 2a0d 0a20 2a20 4041  rved... *.. * @A
00000050: 5050 4c45 5f4f 5352 4546 4552 454e 4345  PPLE_OSREFERENCE
00000060: 5f4c 4943 454e 5345 5f48 4541 4445 525f  _LICENSE_HEADER_
00000070: 5354 4152 5440 0d0a 202a 200d 0a20 2a20  START@.. * .. * 
00000080: 5468 6973 2066 696c 6520 636f 6e74 6169  This file contai
00000090: 6e73 204f 7269 6769 6e61 6c20 436f 6465  ns Original Code
000000a0: 2061 6e64 2f6f 7220 4d6f 6469 6669 6361   and/or Modifica
000000b0: 7469 6f6e 7320 6f66 204f 7269 6769 6e61  tions of Origina
000000c0: 6c20 436f 6465 0d0a 202a 2061 7320 6465  l Code.. * as de
000000d0: 6669 6e65 6420 696e 2061 6e64 2074 6861  fined in and tha
000000e0: 7420 6172 6520 7375 626a 6563 7420 746f  t are subject to
000000f0: 2074 6865 2041 7070 6c65 2050 7562 6c69   the Apple Publi
00000100: 6320 536f 7572 6365 204c 6963 656e 7365  c Source License
00000110: 0d0a 202a 2056 6572 7369 6f6e 2032 2e30  .. * Version 2.0
00000120: 2028 7468 6520 274c 6963 656e 7365 2729   (the 'License')
00000130: 2e20 596f 7520 6d61 7920 6e6f 7420 7573  . You may not us
00000140: 6520 7468 6973 2066 696c 6520 6578 6365  e this file exce
00000150: 7074 2069 6e0d 0a20 2a20 636f 6d70 6c69  pt in.. * compli
00000160: 616e 6365 2077 6974 6820 7468 6520 4c69  ance with the Li
00000170: 6365 6e73 652e 2054 6865 2072 6967 6874  cense. The right
00000180: 7320 6772 616e 7465 6420 746f 2079 6f75  s granted to you
00000190: 2075 6e64 6572 2074 6865 204c 6963 656e   under the Licen
000001a0: 7365 0d0a                                se..
SPEEDY-NUC:FlatDevTree rehabman$ head device_tree.c |xxd
00000000: 2f2a 0d0a 202a 2043 6f70 7972 6967 6874  /*.. * Copyright
00000010: 2028 6329 2032 3030 302d 3230 3034 2041   (c) 2000-2004 A
00000020: 7070 6c65 2043 6f6d 7075 7465 722c 2049  pple Computer, I
00000030: 6e63 2e20 416c 6c20 7269 6768 7473 2072  nc. All rights r
00000040: 6573 6572 7665 642e 0d0a 202a 0d0a 202a  eserved... *.. *
00000050: 2040 4150 504c 455f 4f53 5245 4645 5245   @APPLE_OSREFERE
00000060: 4e43 455f 4c49 4345 4e53 455f 4845 4144  NCE_LICENSE_HEAD
00000070: 4552 5f53 5441 5254 400d 0a20 2a20 0d0a  ER_START@.. * ..
00000080: 202a 2054 6869 7320 6669 6c65 2063 6f6e   * This file con
00000090: 7461 696e 7320 4f72 6967 696e 616c 2043  tains Original C
000000a0: 6f64 6520 616e 642f 6f72 204d 6f64 6966  ode and/or Modif
000000b0: 6963 6174 696f 6e73 206f 6620 4f72 6967  ications of Orig
000000c0: 696e 616c 2043 6f64 650d 0a20 2a20 6173  inal Code.. * as
000000d0: 2064 6566 696e 6564 2069 6e20 616e 6420   defined in and 
000000e0: 7468 6174 2061 7265 2073 7562 6a65 6374  that are subject
000000f0: 2074 6f20 7468 6520 4170 706c 6520 5075   to the Apple Pu
00000100: 626c 6963 2053 6f75 7263 6520 4c69 6365  blic Source Lice
00000110: 6e73 650d 0a20 2a20 5665 7273 696f 6e20  nse.. * Version 
00000120: 322e 3020 2874 6865 2027 4c69 6365 6e73  2.0 (the 'Licens
00000130: 6527 292e 2059 6f75 206d 6179 206e 6f74  e'). You may not
00000140: 2075 7365 2074 6869 7320 6669 6c65 2065   use this file e
00000150: 7863 6570 7420 696e 0d0a 202a 2063 6f6d  xcept in.. * com
00000160: 706c 6961 6e63 6520 7769 7468 2074 6865  pliance with the
00000170: 204c 6963 656e 7365 2e20 5468 6520 7269   License. The ri
00000180: 6768 7473 2067 7261 6e74 6564 2074 6f20  ghts granted to 
00000190: 796f 7520 756e 6465 7220 7468 6520 4c69  you under the Li
000001a0: 6365 6e73 650d 0a20 2a20 6d61 7920 6e6f  cense.. * may no
000001b0: 7420 6265 2075 7365 6420 746f 2063 7265  t be used to cre
000001c0: 6174 652c 206f 7220 656e 6162 6c65 2074  ate, or enable t
000001d0: 6865 2063 7265 6174 696f 6e20 6f72 2072  he creation or r
000001e0: 6564 6973 7472 6962 7574 696f 6e20 6f66  edistribution of
000001f0: 2c0d 0a                                  ,..
Share this post

  • 1 month later...
  • 3 weeks later...

xcode 8 vas just perfect for me, exceptional ed for a couple of bugs while debugging on an ios device, that's why i am using a back copy of Xcode 8.3.3 i have and you can also download it from the downloads section of the developers web site, you have to own a developer account for that, but it could be without the subscription ti the developer program

Share this post

  • 3 weeks later...

Xcode9.2 (9C40b) is available in AppStore.

For better functionality I added manually MacOSX10.11.sdk.

Kexts compiled with 10.13.sdk will run only in 10.13.

While kexts compiled with 10.11.sdk will work in 10.6+

attachicon.gifMacOSX10.11.sdk.7z

I keep all the SDKs, since 10.6:

NUC6i7KYK:~ rehabman$ ls -l /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/
total 64
drwxr-xr-x  5 root  wheel  170 Dec 31  1969 MacOSX.sdk
lrwxr-xr-x  1 root  wheel   40 Dec  4 13:52 MacOSX10.10.sdk -> /Applications/LegacySDKs/MacOSX10.10.sdk
lrwxr-xr-x  1 root  wheel   40 Dec  4 13:52 MacOSX10.11.sdk -> /Applications/LegacySDKs/MacOSX10.11.sdk
lrwxr-xr-x  1 root  wheel   40 Dec  4 13:52 MacOSX10.12.sdk -> /Applications/LegacySDKs/MacOSX10.12.sdk
lrwxr-xr-x  1 root  wheel   10 Dec  4 13:48 MacOSX10.13.sdk -> MacOSX.sdk
lrwxr-xr-x  1 root  wheel   39 Dec  4 13:52 MacOSX10.6.sdk -> /Applications/LegacySDKs/MacOSX10.6.sdk
lrwxr-xr-x  1 root  wheel   39 Dec  4 13:52 MacOSX10.7.sdk -> /Applications/LegacySDKs/MacOSX10.7.sdk
lrwxr-xr-x  1 root  wheel   39 Dec  4 13:52 MacOSX10.8.sdk -> /Applications/LegacySDKs/MacOSX10.8.sdk
lrwxr-xr-x  1 root  wheel   39 Dec  4 13:52 MacOSX10.9.sdk -> /Applications/LegacySDKs/MacOSX10.9.sdk
setup with this script:

NUC6i7KYK:~ rehabman$ cat legacysdks.sh 
#!/bin/bash

osxplatform=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform
sdkrepo=$osxplatform/Developer/SDKs/
infoplist=$osxplatform/Info.plist

for sdk in /Applications/LegacySDKs/*.sdk; do
   sudo ln -s $sdk $sdkrepo`basename $sdk`
done
ls -l $sdkrepo

sudo /usr/libexec/PlistBuddy -c "Set :MinimumSDKVersion 10.6" $infoplist
Share this post

  • 1 month later...

In the system 10.14.6 I got Xcode11 as update for Xcode10.3

Снимок экрана 2019-09-22 в 8.13.12.png

 

Снимок экрана 2019-09-21 в 8.16.30.png

 

First look, all is fine and all my projects are compilable.

There is a new SDK named DriverKit. I have to propose they decided to resolve my conflict between new macOS SDK and kext compilation. Just for now I have to manually include MacOS10.11.sdk although every update Apple tends to erase it.

But change from SDK10.11 to the DriverKit requires some work will be done later.

Share this post

20 minutes ago, Slice said:

In the system 10.14.6 I got Xcode11 as update for Xcode10.3

Снимок экрана 2019-09-22 в 8.13.12.png

 

Снимок экрана 2019-09-21 в 8.16.30.png

 

First look, all is fine and all my projects are compilable.

There is a new SDK named DriverKit. I have to propose they decided to resolve my conflict between new macOS SDK and kext compilation. Just for now I have to manually include MacOS10.11.sdk although every update Apple tends to erase it.

But change from SDK10.11 to the DriverKit requires some work will be done later.

 

Thanks. Where can I download SDK and how to add them to Xcode 11

Share this post

×