Tidesdk build osx 10.7.4 sdk 10.7 xcode4 - masonzhang/TideSDK GitHub Wiki

Prerequisites

  • Xcode 4.x
  • scons 2.1.0
  • git
  • pkgconfig

Install Prerequisites

  • pkgconfig — install via ports:
    $ sudo port install git-core pkgconfig
    
  • or homebrew
    $ brew install git pkgconfig
    

Ensure Developer Directory is Set

sudo xcode-select -switch /Applications/Xcode.app/Contents/Developer

Checkout the Sources

Note that developmental sources are up to date on the develop branch. The master is stable source that will only be merged from the development branch for releases or hot fixes. We are currently building for 10.6 SDK which will be tagged as we work out the deprecations for 10.7.

git clone git://github.com/TideSDK/TideSDK
cd TideSDK
git checkout -b develop remotes/origin/develop

Build with Installer

scons -s debug=1 sdkinstaller run=1

Build and Run Unit Tests

scons -s debug=1 drillbit run=1

Manual uninstall

rm -r ~/Library/Application\ Support/TideSDK/sdk/osx/1.3.0-beta
rm -r ~/Library/Application\ Support/TideSDK/runtime/osx/1.3.0-beta
rm -r ~/Library/Application\ Support/TideSDK/modules/osx/*/1.3.0-beta

Tracebacks/Notes

There are currently deprecations for 10.7 that are not harmful to the SDK but will be resolved.

tide/libtide/osx/osx_host.mm: In member function 'void tide::Host::Initialize(int, const char**)':
tide/libtide/osx/osx_host.mm:54: warning: 'CRYPTO_num_locks' is deprecated (declared at /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.7.sdk/usr/include/openssl/crypto.h:415)
tide/libtide/osx/osx_host.mm:54: warning: 'CRYPTO_num_locks' is deprecated (declared at /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.7.sdk/usr/include/openssl/crypto.h:415)
tide/libtide/osx/osx_host.mm:55: warning: 'CRYPTO_set_id_callback' is deprecated (declared at /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.7.sdk/usr/include/openssl/crypto.h:425)
tide/libtide/osx/osx_host.mm:55: warning: 'CRYPTO_set_id_callback' is deprecated (declared at /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.7.sdk/usr/include/openssl/crypto.h:425)
tide/libtide/osx/osx_host.mm:56: warning: 'CRYPTO_set_locking_callback' is deprecated (declared at /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.7.sdk/usr/include/openssl/crypto.h:418)
tide/libtide/osx/osx_host.mm:56: warning: 'CRYPTO_set_locking_callback' is deprecated (declared at /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.7.sdk/usr/include/openssl/crypto.h:418)
modules/ti.UI/mac/UserWindowMac.mm: In member function 'void ti::UserWindowMac::OpenChooserDialog(bool, tide::KMethodRef, bool, std::string&, std::string&, std::string&, std::vector<std::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::allocator<std::basic_string<char, std::char_traits<char>, std::allocator<char> > > >&, std::string&)':
modules/ti.UI/mac/UserWindowMac.mm:778: warning: 'runModalForDirectory:file:types:' is deprecated (declared at /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.7.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSOpenPanel.h:61)
modules/ti.UI/mac/UserWindowMac.mm:780: warning: 'filenames' is deprecated (declared at /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.7.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSOpenPanel.h:43)
modules/ti.UI/mac/UserWindowMac.mm: In member function 'virtual void ti::UserWindowMac::OpenSaveAsDialog(tide::KMethodRef, std::string&, std::string&, std::string&, std::vector<std::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::allocator<std::basic_string<char, std::char_traits<char>, std::allocator<char> > > >&, std::string&)':
modules/ti.UI/mac/UserWindowMac.mm:843: warning: 'runModalForDirectory:file:' is deprecated (declared at /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.7.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSSavePanel.h:294)
modules/ti.UI/mac/UserWindowMac.mm:850: warning: 'filename' is deprecated (declared at /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.7.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSSavePanel.h:276)
modules/ti.UI/mac/WebViewDelegate.mm: In function 'void -[WebViewDelegate webView:runOpenPanelForFileButtonWithResultListener:](WebViewDelegate*, objc_selector*, WebView*, objc_object*)':
modules/ti.UI/mac/WebViewDelegate.mm:488: warning: 'beginSheetForDirectory:file:modalForWindow:modalDelegate:didEndSelector:contextInfo:' is deprecated (declared at /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.7.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSSavePanel.h:290)
modules/ti.UI/mac/WebViewDelegate.mm: In function 'void -[WebViewDelegate webView:runOpenPanelForFileButtonWithResultListener:allowMultipleFiles:](WebViewDelegate*, objc_selector*, WebView*, objc_object*, BOOL)':
modules/ti.UI/mac/WebViewDelegate.mm:503: warning: 'beginSheetForDirectory:file:modalForWindow:modalDelegate:didEndSelector:contextInfo:' is deprecated (declared at /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.7.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSSavePanel.h:290)
modules/ti.UI/mac/WebViewDelegate.mm: In function 'void -[WebViewDelegate openPanelDidEnd:returnCode:contextInfo:](WebViewDelegate*, objc_selector*, NSOpenPanel*, int, void*)':
modules/ti.UI/mac/WebViewDelegate.mm:513: warning: 'filenames' is deprecated (declared at /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.7.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSOpenPanel.h:43)

Copyright and Attribution

The following copyright and attribution applies to this document:

  • Copyright © 2012 David Pratt (for TideSDK). All rights reserved.
  • Original sources of build documentation copyright (c) Appcelerator Inc.

CONTRIBUTORS:

  • David Pratt
  • Francisco Zarate
  • Daegalus
  • Dubcanada
  • Motin
⚠️ **GitHub.com Fallback** ⚠️