UPDATE: Xcode 4 cocos2d + Chipmunk & box2d templates are ready in "develop" branch
Cocos2d Templates in Xcode 4?
(82 posts) (34 voices)-
Posted 1 year ago #
-
@riq
noob here. What do I need to do in the terminal to install this properly?
Posted 1 year ago # -
@lalocal:
I just posted the instructions here:
http://www.cocos2d-iphone.org/archives/1412Posted 1 year ago # -
This is probably a newb question, but are there any cocos2d mac templates for Xcode 4?
Posted 1 year ago # -
I have installed the new xcode4 templates and I can create a new project but when I try to run it I get this error:
LLVM ERROR: Cannot yet select: 0xa03a9d8: v16i8 = bit_convert 0xa04fc48 [ORD=199] [ID=170] 0xa04fc48: v8i16 = X86ISD::PSHUFLW 0xa04fa28, 0xa04f808 [ID=166] 0xa04fa28: v8i16 = X86ISD::PSHUFHW 0xa03a7b8, 0xa04f808 [ID=162] 0xa03a7b8: v8i16 = llvm.x86.sse2.packssdw.128 0xa03a730, 0xa03a6a8, 0xa03a620 [ORD=196] [ID=158] 0xa03a730: i32 = Constant<647> [ORD=196] [ID=21] 0xa03a6a8: v4i32 = bit_convert 0xa03a510 [ORD=195] [ID=139] 0xa03a510: v4f32 = llvm.x86.sse.cmp.ps 0xa03a400, 0xa04df70, 0xa03bdc0, 0xa03a488 [ORD=192] [ID=130] 0xa03a400: i32 = Constant<784> [ORD=192] [ID=19] 0xa04df70: v4f32 = X86ISD::PSHUFD 0xa03bdc0, 0xa01eaf0 [ID=121] 0xa03bdc0: v4f32 = fadd 0xa03bd38, 0xa018408 [ORD=173] [ID=114] 0xa03bd38: v4f32 = fmul 0xa04dbb8, 0xa03bcb0 [ORD=172] [ID=102] 0xa04dbb8: v4f32 = X86ISD::PSHUFD 0xa0353e0, 0xa01eaf0 [ID=85] 0xa0353e0: v4f32,ch = load 0x5542a54, 0xa018d10, 0xa035798<LD16[%scevgep5]> [ORD=129] [ID=68] 0x5542a54: ch = EntryToken [ORD=117] [ID=0] 0xa018d10: i32 = add 0xa0354f0, 0xa018b78 [ORD=128] [ID=63] 0xa0354f0: i32,ch = CopyFromReg 0x5542a54, 0xa018d98 [ORD=117] [ID=44] 0x5542a54: ch = EntryToken [ORD=117] [ID=0] 0xa018d98: i32 = Register %reg16397 [ORD=117] [ID=1] 0xa018b78: i32 = Constant<32> [ORD=128] [ID=3] 0xa035798: i32 = undef [ORD=119] [ID=2] 0xa01eaf0: i8 = Constant<-1> [ID=38] 0xa03bcb0: v4f32,ch = CopyFromReg 0x5542a54, 0xa03bc28 [ORD=172] [ID=48] 0x5542a54: ch = EntryToken [ORD=117] [ID=0] 0xa03bc28: v4f32 = Register %reg16393 [ORD=172] [ID=10] 0xa018408: v4f32 = fadd 0xa019040, 0xa0352d0 [ORD=167] [ID=110] 0xa019040: v4f32 = fmul 0xa04dc40, 0xa035578 [ORD=159] [ID=101] 0xa04dc40: v4f32 = X86ISD::PSHUFD 0xa0353e0, 0xa03a158 [ID=84] 0xa0353e0: v4f32,ch = load 0x5542a54, 0xa018d10, 0xa035798<LD16[%scevgep5]> [ORD=129] [ID=68] 0x5542a54: ch = EntryToken [ORD=117] [ID=0] 0xa018d10: i32 = add 0xa0354f0, 0xa018b78 [ORD=128] [ID=63] 0xa0354f0: i32,ch = CopyFromReg 0x5542a54, 0xa018d98 [ORD=117] [ID=44] 0x5542a54: ch = EntryToken [ORD=117] [ID=0] 0xa018d98: i32 = Register %reg16397 [ORD=117] [ID=1] 0xa018b78: i32 = Constant<32> [ORD=128] [ID=3] 0xa035798: i32 = undef [ORD=119] [ID=2] 0xa03a158: i8 = Constant<-86> [ID=39] 0xa035578: v4f32,ch = CopyFromReg 0x5542a54, 0xa018490 [ORD=156] [ID=47] 0x5542a54: ch = EntryToken [ORD=117] [ID=0] 0xa018490: v4f32 = Register %reg16390 [ORD=156] [ID=9] 0xa0352d0: v4f32 = fadd 0xa035820, 0xa018518 [ORD=163] [ID=106] 0xa035820: v4f32 = fmul 0xa04dd50, 0xa034e08 [ORD=151] [ID=99] 0xa04dd50: v4f32 = X86ISD::PSHUFD 0xa0353e0, 0xa04d2b0 [ID=82] 0xa0353e0: v4f32,ch = load 0x5542a54, 0xa018d10, 0xa035798<LD16[%scevgep5]> [ORD=129] [ID=68] 0x5542a54: ch = EntryToken [ORD=117] [ID=0] 0xa018d10: i32 = add 0xa0354f0, 0xa018b78 [ORD=128] [ID=63] 0xa0354f0: i32,ch = CopyFromReg 0x5542a54, 0xa018d98 [ORD=117] [ID=44] 0x5542a54: ch = EntryToken [ORD=117] [ID=0] 0xa018d98: i32 = Register %reg16397 [ORD=117] [ID=1] 0xa018b78: i32 = Constant<32> [ORD=128] [ID=3] 0xa035798: i32 = undef [ORD=119] [ID=2] 0xa04d2b0: i8 = Constant<85> [ID=41] 0xa034e08: v4f32,ch = CopyFromReg 0x5542a54, 0xa035c60 [ORD=148] [ID=45] 0x5542a54: ch = EntryToken [ORD=117] [ID=0] 0xa035c60: v4f32 = Register %reg16391 [ORD=148] [ID=7] 0xa018518: v4f32 = fmul 0xa04dcc8, 0xa035248 [ORD=155] [ID=100] 0xa04dcc8: v4f32 = X86ISD::PSHUFD 0xa0353e0, 0xa04c778 [ID=83] 0xa0353e0: v4f32,ch = load 0x5542a54, 0xa018d10, 0xa035798<LD16[%scevgep5]> [ORD=129] [ID=68] 0x5542a54: ch = EntryToken [ORD=117] [ID=0] 0xa018d10: i32 = add 0xa0354f0, 0xa018b78 [ORD=128] [ID=63] 0xa0354f0: i32,ch = CopyFromReg 0x5542a54, 0xa018d98 [ORD=117] [ID=44] 0x5542a54: ch = EntryToken [ORD=117] [ID=0] 0xa018d98: i32 = Register %reg16397 [ORD=117] [ID=1] 0xa018b78: i32 = Constant<32> [ORD=128] [ID=3] 0xa035798: i32 = undef [ORD=119] [ID=2] 0xa04c778: i8 = Constant<0> [ID=40] 0xa035248: v4f32,ch = CopyFromReg 0x5542a54, 0xa018e20 [ORD=152] [ID=46] 0x5542a54: ch = EntryToken [ORD=117] [ID=0] 0xa018e20: v4f32 = Register %reg16392 [ORD=152] [ID=8] 0xa01eaf0: i8 = Constant<-1> [ID=38] 0xa03bdc0: v4f32 = fadd 0xa03bd38, 0xa018408 [ORD=173] [ID=114] 0xa03bd38: v4f32 = fmul 0xa04dbb8, 0xa03bcb0 [ORD=172] [ID=102] 0xa04dbb8: v4f32 = X86ISD::PSHUFD 0xa0353e0, 0xa01eaf0 [ID=85] 0xa0353e0: v4f32,ch = load 0x5542a54, 0xa018d10, 0xa035798<LD16[%scevgep5]> [ORD=129] [ID=68] 0x5542a54: ch = EntryToken [ORD=117] [ID=0] 0xa018d10: i32 = add 0xa0354f0, 0xa018b78 [ORD=128] [ID=63] 0xa0354f0: i32,ch = CopyFromReg 0x5542a54, 0xa018d98 [ORD=117] [ID=44] 0x5542a54: ch = EntryToken [ORD=117] [ID=0] 0xa018d98: i32 = Register %reg16397 [ORD=117] [ID=1] 0xa018b78: i32 = Constant<32> [ORD=128] [ID=3] 0xa035798: i32 = undef [ORD=119] [ID=2] 0xa01eaf0: i8 = Constant<-1> [ID=38] 0xa03bcb0: v4f32,ch = CopyFromReg 0x5542a54, 0xa03bc28 [ORD=172] [ID=48] 0x5542a54: ch = EntryToken [ORD=117] [ID=0] 0xa03bc28: v4f32 = Register %reg16393 [ORD=172] [ID=10] 0xa018408: v4f32 = fadd 0xa019040, 0xa0352d0 [ORD=167] [ID=110] 0xa019040: v4f32 = fmul 0xa04dc40, 0xa035578 [ORD=159] [ID=101] 0xa04dc40: v4f32 = X86ISD::PSHUFD 0xa0353e0, 0xa03a158 [ID=84] 0xa0353e0: v4f32,ch = load 0x5542a54, 0xa018d10, 0xa035798<LD16[%scevgep5]> [ORD=129] [ID=68] 0x5542a54: ch = EntryToken [ORD=117] [ID=0] 0xa018d10: i32 = add 0xa0354f0, 0xa018b78 [ORD=128] [ID=63] 0xa0354f0: i32,ch = CopyFromReg 0x5542a54, 0xa018d98 [ORD=117] [ID=44] 0x5542a54: ch = EntryToken [ORD=117] [ID=0] 0xa018d98: i32 = Register %reg16397 [ORD=117] [ID=1] 0xa018b78: i32 = Constant<32> [ORD=128] [ID=3] 0xa035798: i32 = undef [ORD=119] [ID=2] 0xa03a158: i8 = Constant<-86> [ID=39] 0xa035578: v4f32,ch = CopyFromReg 0x5542a54, 0xa018490 [ORD=156] [ID=47] 0x5542a54: ch = EntryToken [ORD=117] [ID=0] 0xa018490: v4f32 = Register %reg16390 [ORD=156] [ID=9] 0xa0352d0: v4f32 = fadd 0xa035820, 0xa018518 [ORD=163] [ID=106] 0xa035820: v4f32 = fmul 0xa04dd50, 0xa034e08 [ORD=151] [ID=99] 0xa04dd50: v4f32 = X86ISD::PSHUFD 0xa0353e0, 0xa04d2b0 [ID=82] 0xa0353e0: v4f32,ch = load 0x5542a54, 0xa018d10, 0xa035798<LD16[%scevgep5]> [ORD=129] [ID=68] 0x5542a54: ch = EntryToken [ORD=117] [ID=0] 0xa018d10: i32 = add 0xa0354f0, 0xa018b78 [ORD=128] [ID=63] 0xa0354f0: i32,ch = CopyFromReg 0x5542a54, 0xa018d98 [ORD=117] [ID=44] 0x5542a54: ch = EntryToken [ORD=117] [ID=0] 0xa018d98: i32 = Register %reg16397 [ORD=117] [ID=1] 0xa018b78: i32 = Constant<32> [ORD=128] [ID=3] 0xa035798: i32 = undef [ORD=119] [ID=2] 0xa04d2b0: i8 = Constant<85> [ID=41] 0xa034e08: v4f32,ch = CopyFromReg 0x5542a54, 0xa035c60 [ORD=148] [ID=45] 0x5542a54: ch = EntryToken [ORD=117] [ID=0] 0xa035c60: v4f32 = Register %reg16391 [ORD=148] [ID=7] 0xa018518: v4f32 = fmul 0xa04dcc8, 0xa035248 [ORD=155] [ID=100] 0xa04dcc8: v4f32 = X86ISD::PSHUFD 0xa0353e0, 0xa04c778 [ID=83] 0xa0353e0: v4f32,ch = load 0x5542a54, 0xa018d10, 0xa035798<LD16[%scevgep5]> [ORD=129] [ID=68] 0x5542a54: ch = EntryToken [ORD=117] [ID=0] 0xa018d10: i32 = add 0xa0354f0, 0xa018b78 [ORD=128] [ID=63] 0xa0354f0: i32,ch = CopyFromReg 0x5542a54, 0xa018d98 [ORD=117] [ID=44] 0x5542a54: ch = EntryToken [ORD=117] [ID=0] 0xa018d98: i32 = Register %reg16397 [ORD=117] [ID=1] 0xa018b78: i32 = Constant<32> [ORD=128] [ID=3] 0xa035798: i32 = undef [ORD=119] [ID=2] 0xa04c778: i8 = Constant<0> [ID=40] 0xa035248: v4f32,ch = CopyFromReg 0x5542a54, 0xa018e20 [ORD=152] [ID=46] 0x5542a54: ch = EntryToken [ORD=117] [ID=0] 0xa018e20: v4f32 = Register %reg16392 [ORD=152] [ID=8] 0xa03a488: i8 = Constant<1> [ORD=192] [ID=20] 0xa03a620: v4i32 = bit_convert 0xa03a598 [ORD=194] [ID=154] 0xa03a598: v4f32 = llvm.x86.sse.cmp.ps 0xa03a400, 0xa03bdc0, 0xa04be60, 0xa03a488 [ORD=193] [ID=150] 0xa03a400: i32 = Constant<784> [ORD=192] [ID=19] 0xa03bdc0: v4f32 = fadd 0xa03bd38, 0xa018408 [ORD=173] [ID=114] 0xa03bd38: v4f32 = fmul 0xa04dbb8, 0xa03bcb0 [ORD=172] [ID=102] 0xa04dbb8: v4f32 = X86ISD::PSHUFD 0xa0353e0, 0xa01eaf0 [ID=85] 0xa0353e0: v4f32,ch = load 0x5542a54, 0xa018d10, 0xa035798<LD16[%scevgep5]> [ORD=129] [ID=68] 0x5542a54: ch = EntryToken [ORD=117] [ID=0] 0xa018d10: i32 = add 0xa0354f0, 0xa018b78 [ORD=128] [ID=63] 0xa0354f0: i32,ch = CopyFromReg 0x5542a54, 0xa018d98 [ORD=117] [ID=44] 0x5542a54: ch = EntryToken [ORD=117] [ID=0] 0xa018d98: i32 = Register %reg16397 [ORD=117] [ID=1] 0xa018b78: i32 = Constant<32> [ORD=128] [ID=3] 0xa035798: i32 = undef [ORD=119] [ID=2] 0xa01eaf0: i8 = Constant<-1> [ID=38] 0xa03bcb0: v4f32,ch = CopyFromReg 0x5542a54, 0xa03bc28 [ORD=172] [ID=48] 0x5542a54: ch = EntryToken [ORD=117] [ID=0] 0xa03bc28: v4f32 = Register %reg16393 [ORD=172] [ID=10] 0xa018408: v4f32 = fadd 0xa019040, 0xa0352d0 [ORD=167] [ID=110] 0xa019040: v4f32 = fmul 0xa04dc40, 0xa035578 [ORD=159] [ID=101] 0xa04dc40: v4f32 = X86ISD::PSHUFD 0xa0353e0, 0xa03a158 [ID=84] 0xa0353e0: v4f32,ch = load 0x5542a54, 0xa018d10, 0xa035798<LD16[%scevgep5]> [ORD=129] [ID=68] 0x5542a54: ch = EntryToken [ORD=117] [ID=0] 0xa018d10: i32 = add 0xa0354f0, 0xa018b78 [ORD=128] [ID=63] 0xa0354f0: i32,ch = CopyFromReg 0x5542a54, 0xa018d98 [ORD=117] [ID=44] 0x5542a54: ch = EntryToken [ORD=117] [ID=0] 0xa018d98: i32 = Register %reg16397 [ORD=117] [ID=1] 0xa018b78: i32 = Constant<32> [ORD=128] [ID=3] 0xa035798: i32 = undef [ORD=119] [ID=2] 0xa03a158: i8 = Constant<-86> [ID=39] 0xa035578: v4f32,ch = CopyFromReg 0x5542a54, 0xa018490 [ORD=156] [ID=47] 0x5542a54: ch = EntryToken [ORD=117] [ID=0] 0xa018490: v4f32 = Register %reg16390 [ORD=156] [ID=9] 0xa0352d0: v4f32 = fadd 0xa035820, 0xa018518 [ORD=163] [ID=106] 0xa035820: v4f32 = fmul 0xa04dd50, 0xa034e08 [ORD=151] [ID=99] 0xa04dd50: v4f32 = X86ISD::PSHUFD 0xa0353e0, 0xa04d2b0 [ID=82] 0xa0353e0: v4f32,ch = load 0x5542a54, 0xa018d10, 0xa035798<LD16[%scevgep5]> [ORD=129] [ID=68] 0x5542a54: ch = EntryToken [ORD=117] [ID=0] 0xa018d10: i32 = add 0xa0354f0, 0xa018b78 [ORD=128] [ID=63] 0xa0354f0: i32,ch = CopyFromReg 0x5542a54, 0xa018d98 [ORD=117] [ID=44] 0x5542a54: ch = EntryToken [ORD=117] [ID=0] 0xa018d98: i32 = Register %reg16397 [ORD=117] [ID=1] 0xa018b78: i32 = Constant<32> [ORD=128] [ID=3] 0xa035798: i32 = undef [ORD=119] [ID=2] 0xa04d2b0: i8 = Constant<85> [ID=41] 0xa034e08: v4f32,ch = CopyFromReg 0x5542a54, 0xa035c60 [ORD=148] [ID=45] 0x5542a54: ch = EntryToken [ORD=117] [ID=0] 0xa035c60: v4f32 = Register %reg16391 [ORD=148] [ID=7] 0xa018518: v4f32 = fmul 0xa04dcc8, 0xa035248 [ORD=155] [ID=100] 0xa04dcc8: v4f32 = X86ISD::PSHUFD 0xa0353e0, 0xa04c778 [ID=83] 0xa0353e0: v4f32,ch = load 0x5542a54, 0xa018d10, 0xa035798<LD16[%scevgep5]> [ORD=129] [ID=68] 0x5542a54: ch = EntryToken [ORD=117] [ID=0] 0xa018d10: i32 = add 0xa0354f0, 0xa018b78 [ORD=128] [ID=63] 0xa0354f0: i32,ch = CopyFromReg 0x5542a54, 0xa018d98 [ORD=117] [ID=44] 0x5542a54: ch = EntryToken [ORD=117] [ID=0] 0xa018d98: i32 = Register %reg16397 [ORD=117] [ID=1] 0xa018b78: i32 = Constant<32> [ORD=128] [ID=3] 0xa035798: i32 = undef [ORD=119] [ID=2] 0xa04c778: i8 = Constant<0> [ID=40] 0xa035248: v4f32,ch = CopyFromReg 0x5542a54, 0xa018e20 [ORD=152] [ID=46] 0x5542a54: ch = EntryToken [ORD=117] [ID=0] 0xa018e20: v4f32 = Register %reg16392 [ORD=152] [ID=8] 0xa04be60: v4f32 = bit_convert 0xa04b008 [ID=145] 0xa04b008: v2i64 = xor 0xa01e848, 0xa04b2b0 [ID=140] 0xa01e848: v2i64 = bit_convert 0xa04df70 [ID=131] 0xa04df70: v4f32 = X86ISD::PSHUFD 0xa03bdc0, 0xa01eaf0 [ID=121] 0xa03bdc0: v4f32 = fadd 0xa03bd38, 0xa018408 [ORD=173] [ID=114] 0xa03bd38: v4f32 = fmul 0xa04dbb8, 0xa03bcb0 [ORD=172] [ID=102] 0xa04dbb8: v4f32 = X86ISD::PSHUFD 0xa0353e0, 0xa01eaf0 [ID=85] 0xa0353e0: v4f32,ch = load 0x5542a54, 0xa018d10, 0xa035798<LD16[%scevgep5]> [ORD=129] [ID=68] 0x5542a54: ch = EntryToken [ORD=117] [ID=0] 0xa018d10: i32 = add 0xa0354f0, 0xa018b78 [ORD=128] [ID=63] 0xa0354f0: i32,ch = CopyFromReg 0x5542a54, 0xa018d98 [ORD=117] [ID=44] 0x5542a54: ch = EntryToken [ORD=117] [ID=0] 0xa018d98: i32 = Register %reg16397 [ORD=117] [ID=1] 0xa018b78: i32 = Constant<32> [ORD=128] [ID=3] 0xa035798: i32 = undef [ORD=119] [ID=2] 0xa01eaf0: i8 = Constant<-1> [ID=38] 0xa03bcb0: v4f32,ch = CopyFromReg 0x5542a54, 0xa03bc28 [ORD=172] [ID=48] 0x5542a54: ch = EntryToken [ORD=117] [ID=0] 0xa03bc28: v4f32 = Register %reg16393 [ORD=172] [ID=10] 0xa018408: v4f32 = fadd 0xa019040, 0xa0352d0 [ORD=167] [ID=110] 0xa019040: v4f32 = fmul 0xa04dc40, 0xa035578 [ORD=159] [ID=101] 0xa04dc40: v4f32 = X86ISD::PSHUFD 0xa0353e0, 0xa03a158 [ID=84] 0xa0353e0: v4f32,ch = load 0x5542a54, 0xa018d10, 0xa035798<LD16[%scevgep5]> [ORD=129] [ID=68] 0x5542a54: ch = EntryToken [ORD=117] [ID=0] 0xa018d10: i32 = add 0xa0354f0, 0xa018b78 [ORD=128] [ID=63] 0xa0354f0: i32,ch = CopyFromReg 0x5542a54, 0xa018d98 [ORD=117] [ID=44] 0x5542a54: ch = EntryToken [ORD=117] [ID=0] 0xa018d98: i32 = Register %reg16397 [ORD=117] [ID=1] 0xa018b78: i32 = Constant<32> [ORD=128] [ID=3] 0xa035798: i32 = undef [ORD=119] [ID=2] 0xa03a158: i8 = Constant<-86> [ID=39] 0xa035578: v4f32,ch = CopyFromReg 0x5542a54, 0xa018490 [ORD=156] [ID=47] 0x5542a54: ch = EntryToken [ORD=117] [ID=0] 0xa018490: v4f32 = Register %reg16390 [ORD=156] [ID=9] 0xa0352d0: v4f32 = fadd 0xa035820, 0xa018518 [ORD=163] [ID=106] 0xa035820: v4f32 = fmul 0xa04dd50, 0xa034e08 [ORD=151] [ID=99] 0xa04dd50: v4f32 = X86ISD::PSHUFD 0xa0353e0, 0xa04d2b0 [ID=82] 0xa0353e0: v4f32,ch = load 0x5542a54, 0xa018d10, 0xa035798<LD16[%scevgep5]> [ORD=129] [ID=68] 0x5542a54: ch = EntryToken [ORD=117] [ID=0] 0xa018d10: i32 = add 0xa0354f0, 0xa018b78 [ORD=128] [ID=63] 0xa0354f0: i32,ch = CopyFromReg 0x5542a54, 0xa018d98 [ORD=117] [ID=44] 0x5542a54: ch = EntryToken [ORD=117] [ID=0] 0xa018d98: i32 = Register %reg16397 [ORD=117] [ID=1] 0xa018b78: i32 = Constant<32> [ORD=128] [ID=3] 0xa035798: i32 = undef [ORD=119] [ID=2] 0xa04d2b0: i8 = Constant<85> [ID=41] 0xa034e08: v4f32,ch = CopyFromReg 0x5542a54, 0xa035c60 [ORD=148] [ID=45] 0x5542a54: ch = EntryToken [ORD=117] [ID=0] 0xa035c60: v4f32 = Register %reg16391 [ORD=148] [ID=7] 0xa018518: v4f32 = fmul 0xa04dcc8, 0xa035248 [ORD=155] [ID=100] 0xa04dcc8: v4f32 = X86ISD::PSHUFD 0xa0353e0, 0xa04c778 [ID=83] 0xa0353e0: v4f32,ch = load 0x5542a54, 0xa018d10, 0xa035798<LD16[%scevgep5]> [ORD=129] [ID=68] 0x5542a54: ch = EntryToken [ORD=117] [ID=0] 0xa018d10: i32 = add 0xa0354f0, 0xa018b78 [ORD=128] [ID=63] 0xa0354f0: i32,ch = CopyFromReg 0x5542a54, 0xa018d98 [ORD=117] [ID=44] 0x5542a54: ch = EntryToken [ORD=117] [ID=0] 0xa018d98: i32 = Register %reg16397 [ORD=117] [ID=1] 0xa018b78: i32 = Constant<32> [ORD=128] [ID=3] 0xa035798: i32 = undef [ORD=119] [ID=2] 0xa04c778: i8 = Constant<0> [ID=40] 0xa035248: v4f32,ch = CopyFromReg 0x5542a54, 0xa018e20 [ORD=152] [ID=46] 0x5542a54: ch = EntryToken [ORD=117] [ID=0] 0xa018e20: v4f32 = Register %reg16392 [ORD=152] [ID=8] 0xa01eaf0: i8 = Constant<-1> [ID=38] 0xa04b2b0: v2i64,ch = load 0x5542a54, 0xa04bee8, 0xa035798<LD16[ConstantPool]> [ID=69] 0x5542a54: ch = EntryToken [ORD=117] [ID=0] 0xa04bee8: i32 = add 0xa03a378, 0xa01ec00 [ID=64] 0xa03a378: i32 = X86ISD::GlobalBaseReg [ID=37] 0xa01ec00: i32 = X86ISD::Wrapper 0xa04b3c0 [ID=51] 0xa04b3c0: i32 = TargetConstantPool<<4 x i32> <i32 -2147483648, i32 -2147483648, i32 -2147483648, i32 -2147483648>> 0 [TF=2] [ID=36] 0xa035798: i32 = undef [ORD=119] [ID=2] 0xa03a488: i8 = Constant<1> [ORD=192] [ID=20] 0xa04f808: i8 = Constant<-58> [ID=42] 0xa04f808: i8 = Constant<-58> [ID=42] Program ended with exit code: 1This is happening with all 3 templates. Can I do something to make it work?
Thank you!
Posted 1 year ago # -
Xcode 4 templates for Mac in "develop" branch:
https://github.com/cocos2d/cocos2d-iphone/commit/2d3bca1e2fbb136c0085b049d107fc4097aaf40dStatus: 90% working. It install, but the generated project won't compile because it includes some iOS only files. But if you remove them, it will work OK.
Posted 1 year ago # -
Hey riq great work on those templates !!
Did you find a way to add dynamic libraries (ex. libsqlite3.dylib) or also to create a hierarchy of folders ? In the current templates it's a flat hierarchy every folder is a separate one but what if you want, for example, to include box2d and fontlabel inside a new folder ?
Thanks and keep up the good work
Posted 1 year ago # -
@apouche:
re Dynamic libraries: I couldn't find an special tag to do it, so I ended up using:
<key>SharedSettings</key> <dict> <key>OTHER_LDFLAGS</key> <string>-lYOUR_DYNAMIC_LIBRARY</string> </dict>re sub groups / sub folders: No idea.
Please, let us know if you find a way to create them.
Posted 1 year ago # -
Please, let us know if you find a way to create them.
I will surely do so when I found out. Thanks for the tip
Posted 1 year ago # -
Xcode 4 templates for Mac in "develop" branch:
https://github.com/cocos2d/cocos2d-iphone/commit/2d3bca1e2fbb136c0085b049d107fc4097aaf40dStatus: 90% working. It install, but the generated project won't compile because it includes some iOS only files. But if you remove them, it will work OK.
Hi Riq.. can you please suggest what files should be removed?
Posted 1 year ago # -
i can actually build on my iphone .. just simulator does not work . thx
Posted 1 year ago # -
I can also run on device but when using the simulator I get the same errors as above. But it only happens when running using 4.3 in the simulator, if I drop down to 4.2 it works fine. I am using the stable version of cocos2d 99.5 but also using xcode 4.
"LLVM ERROR: Cannot yet select: 0x7889c90: v2i64 = bit_convert 0x783cfd8 [ID=115]...."
Posted 1 year ago # -
I'm getting a warning with the xcode 4 cocos2d box2d for mac.
warning: Semantic Issue: Enumeration values 'e_unknown' and 'e_typeCount' not handled in switch
anyone know a fix?
Posted 1 year ago # -
Not sure which version of the templates I have, but I have them working in Xcode 4. My only quarrel is I can't make any new cocos2d classes when going file > new file... Is there a newer version I haven't seen which adds this Riq or do you have plans to get this included?
Thanks by the way to everyone involved in helping this along (specifically Riq of course), good to see Xcode 4 picking up more users.
Posted 1 year ago # -
@riq
Someone posted the solution to add subgroups of templates in the post I've opened on stackoverlow.
<key>Definitions</key> <dict> <key>main.h</key> <dict> <key>Path</key> <string>main.h</string> <key>Group</key> <array> <string>Parent1</string> <string>Parent2</string> <string>Child</string> </array> </dict> </dict> <key>Nodes</key> <array> <string>main.h</string> </array>This will create main.h in:
+Project ++Parent1 +++Parent2 ++++Child +++++main.hPosted 1 year ago # -
@Josh:
File Templates are in the "develop" branch: https://github.com/cocos2d/cocos2d-iphone/tree/develop
@apouche:
Thanks. Nice tip!Posted 1 year ago # -
UPDATE:
Templates supports "sub groups"
Mac templates include CocosDenshionhttps://github.com/cocos2d/cocos2d-iphone/commit/4ea306ec056b68f3cf57eb499f0070fdd5a26070
Posted 1 year ago # -
@riq: Installed successfully the latest update of file templates. I've added new file (either CCNode, CCLayer subclass) to my project, I've encountered Xcode 4 crashes..
ASSERTION FAILURE in /SourceCache/IDEFoundation/IDEFoundation-284/Framework/Classes/Model/FileManager/IDEVersionedFileManager.m:313 Details: Assertion failed: (((void*)0) != srcFilePaths) && ([srcFilePaths count] > 0) Object: <IDEVersionedFileManager: 0x201bdba80> Method: -addItemsAtFilePaths:completionBlockDispatchQueue:completionBlock: Thread: <NSThread: 0x201b58a60>{name = (null), num = 23} Hints: None Backtrace: 0 0x0000000100949843 -[IDEAssertionHandler handleFailureInMethod:object:fileName:lineNumber:messageFormat:arguments:] (in IDEKit) 1 0x000000010006d484 _DVTAssertionFailureHandler (in DVTFoundation) 2 0x00000001005eec9d -[IDEVersionedFileManager addItemsAtFilePaths:completionBlockDispatchQueue:completionBlock:] (in IDEFoundation) 3 0x0000000100a4a46c __66-[IDETemplateTextSubstitutionFactory operationForContext:options:]_block_invoke_0169 (in IDEKit) 4 0x0000000100a4a073 __113-[IDETemplateTextSubstitutionFactory _operationToInstantiateTemplateForContext:options:processor:finalProcessor:]_block_invoke_0 (in IDEKit) 5 0x00007fff848a3cc4 -[__NSOperationInternal start] (in Foundation) 6 0x00007fff84982ae7 __doStart2 (in Foundation) 7 0x00007fff844be284 _dispatch_call_block_and_release (in libSystem.B.dylib) 8 0x00007fff8449c7f1 _dispatch_worker_thread2 (in libSystem.B.dylib) 9 0x00007fff8449c128 _pthread_wqthread (in libSystem.B.dylib) 10 0x00007fff8449bfc5 start_wqthread (in libSystem.B.dylib)yet, the class files are created in the project directory. so, I manually added (drag n drop the class files) it to the xcode project.
Pls let me know what's wrong.. Thanks
Posted 1 year ago # -
I'm having the same problem as devb0yax. I installed Xcode 4.0.2 then installed the template files from the latest release of cocos2d. I created a project using the cocos2d with box2d template. Everything builds fine initially. I then drag in a .h and .m file, build again and Xcode will either lock up immediately or lock up after I perform a clean followed by another build. It typically says either "Processing Info.plist file" or "Precompiling 2 of 2 prefix headers".
I though it might be an issue with 4.0.2 so I reinstalled 4.0 but its still happening. I've uploaded my project for testing: http://ge.tt/4e5kJfb
--------
EDIT: Found my problem - my class was named Block which was causing an internal conflict with the compiler. Renaming the class fixed it.
Posted 1 year ago # -
I know this is old but I wanted to answer to @finder39 as I just stumbled on the same issue.
This is happening because the DrawShape method (about line 1013 of file b2World.cpp) does not contain a case in the switch statement for those enum values.
You can get rid of the compiler warnings by adding a default case (this seems to happen only on xcode 4.1 and later, where you always have to include a default case in your switch statement or you'll get the warning):switch (fixture->GetType())
{
...
...
default:
{
break;
}Posted 3 months ago #
Reply
You must log in to post.