R185 Export to Ejecta will not run

Bugs will be moved here once resolved.

Post » Wed Oct 22, 2014 10:03 am

Problem Description
On R185, even a basic empty project exported to Ejecta will not run in Xcode. Exports from R183 version run fine.

Attach a Capx
Attached..very basic capx.

Description of Capx
Empty Capx with two sprites. Does nothing but show the sprites.

Steps to Reproduce Bug
  • Open Capx
  • Export to EJecta , don't minify. Place files in the App folder on the Mac.
  • Run the project in Xcode Simulator

Observed Result
Project will not run in Xcode/Simulator. Produces an error, with the line JSStringRef jstr = JSStringCreateWithCFString((CFStringRef)string) highlighted.

Code: Select all
#import "EJConvert.h"

NSString *JSValueToNSString( JSContextRef ctx, JSValueRef v ) {
   JSStringRef jsString = JSValueToStringCopy( ctx, v, NULL );
   if( !jsString ) return nil;
   
   NSString *string = (NSString *)JSStringCopyCFString( kCFAllocatorDefault, jsString );
   [string autorelease];
   JSStringRelease( jsString );
   
   return string;
}

JSValueRef NSStringToJSValue( JSContextRef ctx, NSString *string ) {
   JSStringRef jstr = JSStringCreateWithCFString((CFStringRef)string);
   JSValueRef ret = JSValueMakeString(ctx, jstr);
   JSStringRelease(jstr);
   return ret;
}


Expected Result
Should run fine. I've tested exports on R183 and they run fine in the same Ejecta project.

Affected Browsers
  • N/A

Operating System and Service Pack
Win 8

Construct 2 Version ID
R185 32bit
You do not have the required permissions to view the files attached to this post.
B
24
S
7
G
1
Posts: 186
Reputation: 2,716

Post » Wed Oct 22, 2014 3:10 pm

Thanks, should be fixed in the next build. We were caught out by an Ejecta incompatibility which I reported here.
Scirra Founder
B
397
S
236
G
88
Posts: 24,423
Reputation: 194,560

Post » Fri Oct 24, 2014 8:24 am

Thanks Ashley, looking forward to the next release.
B
24
S
7
G
1
Posts: 186
Reputation: 2,716


Return to Closed bugs

Who is online

Users browsing this forum: No registered users and 2 guests