Commit Graph

74 Commits

Author SHA1 Message Date
Eloy Durán
314f301caf [Config] Don't use @name variable directly and add API to get bundle filename. 2014-12-10 20:35:35 +01:00
Watson
b593172355 [RM-672] fix a Instruments template path for Xcode 6.2
http://hipbyte.myjetbrains.com/youtrack/issue/RM-672
2014-12-02 15:02:00 +09:00
Watson
82fa416195 [RM-671] solve framework dependencies in embedded 2014-11-25 11:33:43 +09:00
Eloy Durán
117abe90a5 [Config] Move ivar declaration to file where it's actually used. 2014-11-04 13:08:04 +01:00
Eloy Durán
03aab2a97e [XcodeConfig] Fix missing space in certificate error message. 2014-10-20 14:02:12 +02:00
Eloy Durán
478472308c [rake] Re-instate top-level clean task and refactor into XcodeConfig.
Related to:
* 646cbb1918
* bddc880f98
2014-10-17 12:55:57 +02:00
Eloy Durán
85b668f249 [iOS embedded targets] Require arm64 for device builds.
http://hipbyte.myjetbrains.com/youtrack/issue/RM-559
2014-10-13 14:27:10 +02:00
Eloy Durán
646cbb1918 [Vendor] Use xcodebuild to properly clean.
This is needed to solve any cache issues, such as
the dreaded SharedPrecompiledHeaders issue.

See:

* https://github.com/clayallsopp/afmotion/issues/72
* http://openradar.appspot.com/18536864
2014-10-08 19:00:00 +02:00
Eloy Durán
9ddc886d42 [XcodeConfig] Fallback when available SDK is newer than available metadata. 2014-10-02 15:09:56 +02:00
Eloy Durán
8b2857f1c1 [XcodeConfig] Only match SDKs that have a version number and fail better. 2014-10-02 14:36:41 +02:00
Watson
3bcc44519f change dSYM path to fix symbolicate with Instruments on iOS device
http://hipbyte.myjetbrains.com/youtrack/issue/RM-487
2014-09-24 14:03:04 +09:00
Watson
bc5ff65ab1 fix a bug where Instruments does not launch if specify the template name with "rake profile template='xxx'"
http://hipbyte.myjetbrains.com/youtrack/issue/RM-599
2014-09-13 13:00:50 +09:00
Laurent Sansonetti
bcf2883943 pass environment mode and version number to the runtime, minor refactoring 2014-09-11 15:56:23 +02:00
Eloy Durán
02b8f8a2f5 [Yosemite] Allow OS X apps targeting OS versions lower than current to build.
Fixes http://hipbyte.myjetbrains.com/youtrack/issue/RM-592
2014-09-10 15:57:37 +02:00
Eloy Durán
74a73bcc67 [GBM] Be sure to flush the tempfile IO. 2014-09-02 17:44:32 +02:00
Eloy Durán
63926a22c6 [GBM] Generate a tmp file with headers instead of passing all as arguments.
Fixes http://hipbyte.myjetbrains.com/youtrack/issue/RM-581.
2014-09-02 16:34:20 +02:00
Mark Villacampa
0187a9111f Fail if target path does not exist 2014-08-28 15:06:47 +02:00
Mark Villacampa
b94afc9d38 Added support for loading target frameworks in extensions 2014-08-27 15:52:39 +02:00
Mark Villacampa
1d681f1680 Added support for extensions through the ExtensionTarget 2014-08-27 15:50:45 +02:00
Mark Villacampa
480dcd2e6c Added support for targets. iOS frameworks supported through the FrameworkTarget class. 2014-08-27 15:50:32 +02:00
Laurent Sansonetti
3962728508 pass '-Wl,-no_pie' to the linker in order to remove the 'ld: warning: PIE disabled. Absolute addressing (perhaps -mdynamic-no-pic) not allowed in code signed PIE, but used in _vm_gc_wb from...' message, please revert the change if it causes any problem 2014-08-19 17:22:06 +02:00
Watson
a03c7bfbbd [iOS8] move embedded_frameworks configurations to xcode_config.rb in order to use OSX and iOS platform
http://hipbyte.myjetbrains.com/youtrack/issue/RM-558
2014-08-19 16:59:54 +09:00
Watson
8a4b58bf05 clear xcode_version value when change xcode dir path
http://hipbyte.myjetbrains.com/youtrack/issue/RM-566

If change the Xcode dir path via "app.xcode_dir", already cache the @xcode_version value with '/Applications/Xcode.app/Contents/Developer/usr/bin/xcodebuild'.
We cannot retrieve iOS 8 simulator device name from Xcode 5.
So, 'iPhone 4s / iOS 7' simulator is always launched as default.
2014-08-18 23:39:13 +09:00
Eloy Durán
4d797271e8 [Instruments] All instrument templates seem to work with Xcode 6. 2014-08-18 14:04:28 +02:00
Eloy Durán
a5d6ea1627 [Instruments] Ensure we only deal with the templates part of the output. 2014-08-18 13:09:26 +02:00
Eloy Durán
ce150dbab3 [Instruments] Always try to find the instrument CLI tool in the right xcode_dir. 2014-08-18 13:01:51 +02:00
Watson
a7dd9c405b [iOS8] fix a bug which invalid template path would be generated
If specify template with `rake profile template="XXXX"',
it will generate invalid template path which contains unnecessary `"' as following.

		<key>XrayTemplatePath</key>
		<string>"/Applications/Xcode6-Beta5.app/Contents/Applications/Instruments.app/Contents/Resources/templates/Time Profiler.tracetemplate</string>
2014-08-18 12:26:12 +09:00
Watson
ec3e808e3d [iOS8] fix where Instruments does not launch
http://hipbyte.myjetbrains.com/youtrack/issue/RM-563

Since iOS 8, simulator UUID will be required to launch.
2014-08-18 12:18:08 +09:00
Watson
aabaa110bc [OSX] fix a 'not precompiled' error if specify old version as deployment_target on Yosemite
http://hipbyte.myjetbrains.com/youtrack/issue/RM-525
2014-07-01 13:58:58 +09:00
Watson
d2caa4a5ac accept the lower SDK version in `app.deployment_target' on Yosemite 2014-06-04 10:20:01 +09:00
Laurent Sansonetti
274b13770e move app.version from config to xcodeconfig 2014-05-20 12:01:08 +02:00
Laurent Sansonetti
51cd103453 move versionized_build_dir from config to xcodeconfig 2014-05-19 16:27:14 +02:00
Laurent Sansonetti
10499593c4 move the `rake clear’ logic to platform-specific config files 2014-05-15 20:04:17 +02:00
Laurent Sansonetti
656af65680 move #vendor_project to xcode config, since it won’t work on android 2014-05-15 20:04:17 +02:00
Laurent Sansonetti
f29d89f89a add magic encoding comments to all ruby source files 2014-03-05 12:20:20 +01:00
Eloy Durán
c829719530 [CodeSign] Cleanup. 2014-02-27 16:11:47 +01:00
Eloy Durán
0b2a392f98 [CodeSign] Improve cert finding by only checking codesign identities.
Also move the logic out into a separate util module.

Fixes http://hipbyte.myjetbrains.com/youtrack/issue/RM-399.
2014-02-27 16:01:20 +01:00
Watson
1f2f3b0c4f Revert "fix where Boxed#new doesn't work for GLKKit structure."
This reverts commit ac89cf6b4b.

http://hipbyte.myjetbrains.com/youtrack/issue/RM-342
Because this patch causes a conflict between method's structure signature and bridgesupport's structure signature
2013-12-11 17:14:46 +09:00
Eloy Durán
c761aefa58 [vendor] Ensure that all cflags are properly quoted.
Before it looked like the `-isysroot \"#{sdk_path}\"` part of the cflags
would terminate the string passed to the `--cflags` option.

Now all the contents of the `--cflags` option is quoted using
single-quotes instead.
2013-12-05 12:22:22 +01:00
Watson
d963c6489d move special configuration for iOS/OSX platform from gen_bridge_metadata() 2013-11-11 10:16:53 +09:00
Watson
51ac31a777 [OSX] fix a bug on OSX platform where compiler flags for iOS are passed when it generates bridgesupport file for vendor library
http://hipbyte.myjetbrains.com/youtrack/issue/RM-315
2013-11-11 08:11:16 +09:00
Eloy Durán
3207c10cfb [profiler] Configure Instruments to optionally launch specific template. 2013-11-01 14:58:22 +01:00
Eloy Durán
ca1aee4a81 [profiler] Inherit ENV from parent process. 2013-10-31 22:46:27 +01:00
Eloy Durán
19e9bddef3 [profiler] Pass arguments to app on launch. 2013-10-31 17:50:47 +01:00
Eloy Durán
61e9a65534 [profiler] Refactor rake tasks into the Config and Builder classes. 2013-10-31 17:46:22 +01:00
Watson
52fd3f6ac5 specify the optimization level when compile the RubyMotion boot codes or vendor codes 2013-10-23 14:02:32 +09:00
Watson
ac89cf6b4b fix where Boxed#new doesn't work for GLKKit structure.
http://hipbyte.myjetbrains.com/youtrack/issue/RM-293

GLKKit structures are declared as the following.
If use union type when generate bridgesupport,
it is not output the definition of a data structure using <struct> tag into bridgesupport file.
So, Boxed#new does not work for these structure.

    #if defined(__STRICT_ANSI__)
    struct _GLKMatrix4
    {
        float m[16];
    } __attribute__((aligned(16)));
    typedef struct _GLKMatrix4 GLKMatrix4;
    #else
    union _GLKMatrix4
    {
        struct
        {
            float m00, m01, m02, m03;
            float m10, m11, m12, m13;
            float m20, m21, m22, m23;
            float m30, m31, m32, m33;
        };
        float m[16];
    } __attribute__((aligned(16)));
    typedef union _GLKMatrix4 GLKMatrix4;
    #endif
2013-10-22 13:22:52 +09:00
Eloy Durán
23165c9edf [BS] Make use of our own bin/gen_bridge_metadata during builds. 2013-10-18 17:29:30 +02:00
Watson
95c094df9a add support to compile the Objective-C source codes which uses Modules syntax in `app.vendor_project' with Xcode 5.
http://clang.llvm.org/docs/Modules.html

This patch supports support Objective-C Modules when compile ObjC source codes without xcodeproj file, like
https://github.com/Watson1978/RubyMotionKaigi2013
2013-10-18 09:39:38 +09:00
Watson
e0183179c0 fix the link error of "ld: framework not found IOKit" with "rake device" if use "app.framework_search_paths"
http://hipbyte.myjetbrains.com/youtrack/issue/RM-283
2013-10-15 00:38:11 +09:00