akemin-dayo / simject

simject is a command-line tool and iOS dynamic library that allows developers to easily test their tweaks on the iOS Simulator.
BSD 2-Clause "Simplified" License
486 stars 55 forks source link

Error when building with PrivateFramework #60

Closed haoict closed 4 years ago

haoict commented 4 years ago

In Makefile I set:

ARCHS = x86_64
TARGET = simulator:clang:13.6:13.0
...
$(TWEAK_NAME)_PRIVATE_FRAMEWORKS = Preferences

Then make throws error

ld: warning: directory not found for option '-F/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.6.sdk/System/Library/PrivateFrameworks'
ld: framework not found Preference

I understand that the sdk it's using doesn't have PrivateFramework.

I can get patched sdk from https://github.com/xybp888/iOS-SDKs and built successfully with TARGET = iphone:clang:13.6:13.0. But it's only for iPhoneOS, not iPhoneSimulator

Any workaround for this?

opa334 commented 4 years ago

Use the patched 13.7 simulator sdk from my repo: https://github.com/opa334/sdks

haoict commented 4 years ago

Thanks, let me check and comment back soon

EDIT: I can confirm your patched 13.7 is working well. Thank a ton.