Jump to content

Error compiling tweak: You did not specify a target , and the "" platform does not define a default target.


Go to solution Solved by Rook,

19 posts in this topic

Recommended Posts

Posted

You should add the following code to the top of your makefiles. Your tweaks will not work without it.

 

ARCHS = armv7 arm64
TARGET = iphone:clang:8.1
This code will only work if you have ios 8.1 SDK. Don't use ios 7 SDK on ios 8 :thumbsup:

iOS 7 SDK works fine on iOS 8. And tweaks will work without those codes in makefile. You'll just get a problem with PreferenceBundles on 64 bit. :)

 

Failed to load error: http://iosgods.com/topic/1013-tutorial-how-to-fix-failed-to-load-preference-bundle-for-x-error/

Posted (edited)

iOS 7 SDK works fine on iOS 8. And tweaks will work without those codes in makefile. You'll just get a problem with PreferenceBundles on 64 bit. :)

 

Failed to load error: http://iosgods.com/topic/1013-tutorial-how-to-fix-failed-to-load-preference-bundle-for-x-error/

I see... Thanks to your nic template, I don't have that problem ^_^ Usually, if theos forces clang on my dylib, the binary is armv7 and my tweaks don't work on my ipad mini 2 :( Updated by KingRalph
Posted (edited)

I got error. How fix.

Cd /var/mobile/application name/

make

theos/makefiles/common.mk:103: ***you dit not specify a target, and the "" platform does not define a default target, stop.

Updated by Bl4ckDev
Posted

I got error. How fix.

Cd /var/mobile/application name/

make

theos/makefiles/common.mk:103: ***you dit not specify a target, and the "" platform does not define a default target, stop.

Is theos symlinked in your project folder?

Posted (edited)

what theos symlinkied. Sorry im newbie.

iphone 6

ios 8.0.2

iphoneOS8.1.sdk.

Updated by Bl4ckDev
Posted

what theos symlinkied. Sorry im newbie.

iphone 6

ios 8.0.2

iphoneOS8.1.sdk.

Use the 7.1 SDK and make sure everything is in place. :)

Posted

Yes I believe I do have iOS 8.1 sdk. Now I am getting this error

***first argument to 'word' function must be greater than 0.   Stop

Omg it is the exact same error that I have lol

Posted

I got error. How fix.

Cd /var/mobile/application name/

make

theos/makefiles/common.mk:103: ***you dit not specify a target, and the "" platform does not define a default target, stop.

and i have thes error too

Posted

I'm still getting an error. Does anyone know how to fix this?

Last login: Fri May 11 23:27:35 on ttys000
Dylans-iPhone:~ mobile$ /var/theos/bin/nic.pl
NIC 2.0 - New Instance Creator
------------------------------
  [1.] iphone/application
  [2.] iphone/library
  [3.] iphone/preference_bundle
  [4.] iphone/tool
  [5.] iphone/tweak
Choose a Template (required): 1
Project Name (required): hello
Package Name [com.yourcompany.hello]: 
Author/Maintainer Name [Mobile User]: 
Instantiating iphone/application in hello/...
Done.
Dylans-iPhone:~ mobile$ ls
Application\ Support/  Documents/  Media/
Containers/            Downloads/  MobileSoftwareUpdate/
Darwin-arm.mk@         Library/    hello/
Dylans-iPhone:~ mobile$ cd hello
Dylans-iPhone:~/hello mobile$ ls
Makefile              RootViewController.mm  main.m
Resources/            control                theos@
RootViewController.h  helloApplication.mm
Dylans-iPhone:~/hello mobile$ make package
/bin/sh: /var/mobile/hello/theos/bin/target.pl: Permission denied
theos/makefiles/common.mk:103: *** You did not specify a target, and the "iphone" platform does not define a default target.  Stop.
Dylans-iPhone:~/hello mobile$ 

 

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
  • Create New...

Important Information

We would like to place cookies on your device to help make this website better. The website cannot give you the best user experience without cookies. You can accept or decline our cookies. You may also adjust your cookie settings. Privacy Policy - Guidelines