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

error: 'swift-support': Invalid manifest #30

Open
Lukas1h opened this issue Jul 8, 2023 · 1 comment
Open

error: 'swift-support': Invalid manifest #30

Lukas1h opened this issue Jul 8, 2023 · 1 comment

Comments

@Lukas1h
Copy link

Lukas1h commented Jul 8, 2023

What are the steps to reproduce this issue?

  1. Follow the "getting started" guide

What happens?

Build fails with error: 'swift-support': Invalid manifest

What were you expecting to happen?

No errors.

Any logs, error output, etc?

`make do
==> Notice: Build may be slow as Theos isn’t using all available CPU cores on this computer. Consider upgrading GNU Make: https://theos.dev/docs/parallel-building
==> Warning: Building for iOS 12.2, but the current toolchain can’t produce arm64e binaries for iOS earlier than 14.0. More information: https://theos.dev/docs/arm64e-deployment

Making all for tweak VLCTweak…
==> Building Swift support tools…
warning: '--build-path' option is deprecated; use '--scratch-path' instead
error: 'swift-support': Invalid manifest
:474:9: note: in file included from :474:
#import "hfs/hfs_format.h"
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.1.sdk/usr/include/hfs/hfs_format.h:794:2: error: unknown type name 'uuid_string_t'; did you mean 'io_string_t'?
uuid_string_t ext_jnl_uuid;
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.1.sdk/usr/include/device/device_types.h:89:33: note: 'io_string_t' declared here
typedef char io_string_t[512];
^
:474:9: note: in file included from :474:
#import "hfs/hfs_format.h"
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.1.sdk/usr/include/hfs/hfs_format.h:796:20: error: use of undeclared identifier 'uuid_string_t'
char reserved[JIB_RESERVED_SIZE];
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.1.sdk/usr/include/hfs/hfs_format.h:787:61: note: expanded from macro 'JIB_RESERVED_SIZE'
#define JIB_RESERVED_SIZE ((32*sizeof(u_int32_t)) - sizeof(uuid_string_t) - 48)
^
:482:9: note: in file included from :482:
#import "netinet6/ipcomp.h"
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.1.sdk/usr/include/netinet6/ipcomp.h:40:10: note: in file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.1.sdk/usr/include/netinet6/ipcomp.h:40:
#include <netinet6/ipsec.h>
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.1.sdk/usr/include/netinet6/ipsec.h:141:2: error: unknown type name 'uuid_string_t'; did you mean 'io_string_t'?
uuid_string_t wake_uuid;
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.1.sdk/usr/include/device/device_types.h:89:33: note: 'io_string_t' declared here
typedef char io_string_t[512];
^
:482:9: note: in file included from :482:
#import "netinet6/ipcomp.h"
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.1.sdk/usr/include/netinet6/ipcomp.h:40:10: note: in file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.1.sdk/usr/include/netinet6/ipcomp.h:40:
#include <netinet6/ipsec.h>
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.1.sdk/usr/include/netinet6/ipsec.h:148:2: error: unknown type name 'uuid_string_t'; did you mean 'io_string_t'?
uuid_string_t wake_uuid;
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.1.sdk/usr/include/device/device_types.h:89:33: note: 'io_string_t' declared here
typedef char io_string_t[512];
^
:0: error: could not build Objective-C module 'Darwin'
/Users/blackout/theos/vendor/swift-support/Package.swift:3:8: error: failed to build module 'PackageDescription' for importation due to the errors above; the textual interface may be broken by project issues or a compiler bug
import PackageDescription
^
Failed to build swift-support: command failed: SPM_THEOS_BUILD=1 swift build -c release --package-path /Users/blackout/theos/vendor/swift-support --build-path /Users/blackout/theos/vendor/swift-support/.theos_build
make[2]: *** [internal-VLCTweak-swift-support] Error 2
make[1]: *** [before-VLCTweak-all] Error 2
make: *** [VLCTweak.all.tweak.variables] Error 2`

What versions of software are you using?

Operating System: macOS 12.6.1

Toolchain Version: IDK

SDK Version: iPhoneOS16.2

@uualid
Copy link

uualid commented Nov 10, 2023

Here is how to fix it:

1- Go to apple developer page and download Xcode 14.3.1
2- Move your main xcode to some where else like /Application/LatestXcode
3- Unzip Xcode 14.3.1 and it move it to /Application.
4- type this in terminal: sudo xcode-select -s /Applications/Xcode.app/ which is your 14.3.1
5- build the project with make do. It will take a long time.

Optinal- Give Theos more cores for building: https://theos.dev/docs/parallel-building

Note: Xcode 14.3.1's icon will have slash. you can start it by:
1- cd /Xcode/Contents/MacOS
2- ./xcode

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

No branches or pull requests

2 participants