pixate / titanium-pixatefreestyle Goto Github PK
View Code? Open in Web Editor NEWTitanium Module for Pixate Framework
Home Page: http://pixate.github.com/Titanium-Pixate
Titanium Module for Pixate Framework
Home Page: http://pixate.github.com/Titanium-Pixate
In my Pixate-powered Titanium applications i use the live CSS refresh functionality by using the following piece of code in my app.js:
if(Titanium.Platform.model.indexOf('Simulator') > -1) {
var PX = require('com.pixate.pixatefreestyle'); // changed to new module name
PX.styleSheetFromFilePathWithOrigin({
monitor: true,
origin: 0,
filename: '/path/to/my.css'
});
}
In the new version i get the following error:
[ERROR] Script Error Couldn't find module: com.pixate.pixatefreestyle
When I use the old module name com.pixate.framework
, the app crashes quietly after start.
What about pre-build version?
My log file:
Build settings from command line:
SDKROOT = iphoneos7.0
=== BUILD TARGET PixateFramework OF PROJECT PixateFramework WITH CONFIGURATION Release ===
Check dependencies
CompileC build/PixateFramework.build/Release-iphoneos/PixateFramework.build/Objects-normal/armv7/ComPixateFrameworkModule.o Classes/ComPixateFrameworkModule.m normal armv7 objective-c com.apple.compilers.llvm.clang.1_0.compiler
cd /Users/63ek/Documents/SDKs/modules/pixate/Titanium-Pixate/Pixate
setenv LANG en_US.US-ASCII
setenv PATH "/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/Library/Frameworks/Python.framework/Versions/3.3/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/local/git/bin"
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -x objective-c -arch armv7 -fmessage-length=80 -fdiagnostics-show-note-include-stack -fmacro-backtrace-limit=0 -fcolor-diagnostics -std=c99 -Wno-trigraphs -fpascal-strings -Os -Wno-missing-field-initializers -Wno-missing-prototypes -Wno-return-type -Wno-implicit-atomic-properties -Wno-receiver-is-weak -Wno-arc-repeated-use-of-weak -Wno-missing-braces -Wno-parentheses -Wswitch -Wunused-function -Wno-unused-label -Wno-unused-parameter -Wno-unused-variable -Wno-unused-value -Wno-empty-body -Wno-uninitialized -Wno-unknown-pragmas -Wno-shadow -Wno-four-char-constants -Wno-conversion -Wno-constant-conversion -Wno-int-conversion -Wno-bool-conversion -Wno-enum-conversion -Wno-shorten-64-to-32 -Wpointer-sign -Wno-newline-eof -Wno-selector -Wno-strict-selector-match -Wno-undeclared-selector -Wno-deprecated-implementations -DTI_VERSION= -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS7.0.sdk -fstrict-aliasing -Wprotocol -Wdeprecated-declarations -g -Wno-sign-conversion -miphoneos-version-min=4.0 -iquote /Users/63ek/Documents/SDKs/modules/pixate/Titanium-Pixate/Pixate/build/PixateFramework.build/Release-iphoneos/PixateFramework.build/ComPixateFramework-generated-files.hmap -I/Users/63ek/Documents/SDKs/modules/pixate/Titanium-Pixate/Pixate/build/PixateFramework.build/Release-iphoneos/PixateFramework.build/ComPixateFramework-own-target-headers.hmap -I/Users/63ek/Documents/SDKs/modules/pixate/Titanium-Pixate/Pixate/build/PixateFramework.build/Release-iphoneos/PixateFramework.build/ComPixateFramework-all-target-headers.hmap -iquote /Users/63ek/Documents/SDKs/modules/pixate/Titanium-Pixate/Pixate/build/PixateFramework.build/Release-iphoneos/PixateFramework.build/ComPixateFramework-project-headers.hmap -I/Users/63ek/Documents/SDKs/modules/pixate/Titanium-Pixate/Pixate/build/Release-iphoneos/include -I/var/root/Library/Application\ Support/Titanium/mobilesdk/osx/3.1.3.GA/iphone/include -I/var/root/Library/Application\ Support/Titanium/mobilesdk/osx/3.1.3.GA/iphone/include/TiCore -I/Users/63ek/Documents/SDKs/modules/pixate/Titanium-Pixate/Pixate/build/PixateFramework.build/Release-iphoneos/PixateFramework.build/DerivedSources/armv7 -I/Users/63ek/Documents/SDKs/modules/pixate/Titanium-Pixate/Pixate/build/PixateFramework.build/Release-iphoneos/PixateFramework.build/DerivedSources -F/Users/63ek/Documents/SDKs/modules/pixate/Titanium-Pixate/Pixate/build/Release-iphoneos -F/Users/pixate/Desktop/Pixate/Framework -F/Users/pixate/Documents/Titanium_Studio_Workspace/PixateFramework/platform/iphone -F/Users/pixate/Desktop -DTI_POST_1_2 -include /var/folders/zz/zyxvpxvq6csfxvn_n0000000000000/C/com.apple.DeveloperTools/5.0.1-5A2053/Xcode/SharedPrecompiledHeaders/ComPixateFramework_Prefix-cnzdjkmqoeksnrevbqybnfimsplp/ComPixateFramework_Prefix.pch -MMD -MT dependencies -MF /Users/63ek/Documents/SDKs/modules/pixate/Titanium-Pixate/Pixate/build/PixateFramework.build/Release-iphoneos/PixateFramework.build/Objects-normal/armv7/ComPixateFrameworkModule.d --serialize-diagnostics /Users/63ek/Documents/SDKs/modules/pixate/Titanium-Pixate/Pixate/build/PixateFramework.build/Release-iphoneos/PixateFramework.build/Objects-normal/armv7/ComPixateFrameworkModule.dia -c /Users/63ek/Documents/SDKs/modules/pixate/Titanium-Pixate/Pixate/Classes/ComPixateFrameworkModule.m -o /Users/63ek/Documents/SDKs/modules/pixate/Titanium-Pixate/Pixate/build/PixateFramework.build/Release-iphoneos/PixateFramework.build/Objects-normal/armv7/ComPixateFrameworkModule.o
In file included from /Users/63ek/Documents/SDKs/modules/pixate/Titanium-Pixate/Pixate/Classes/ComPixateFrameworkModule.m:19:
/Users/63ek/Documents/SDKs/modules/pixate/Titanium-Pixate/Pixate/Classes/ComPixateFrameworkModule.h:19:9: fatal error:
'TiModule.h' file not found
^
1 error generated.
CompileC build/PixateFramework.build/Release-iphoneos/PixateFramework.build/Objects-normal/armv7s/ComPixateFrameworkModule.o Classes/ComPixateFrameworkModule.m normal armv7s objective-c com.apple.compilers.llvm.clang.1_0.compiler
cd /Users/63ek/Documents/SDKs/modules/pixate/Titanium-Pixate/Pixate
setenv LANG en_US.US-ASCII
setenv PATH "/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/Library/Frameworks/Python.framework/Versions/3.3/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/local/git/bin"
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -x objective-c -arch armv7s -fmessage-length=80 -fdiagnostics-show-note-include-stack -fmacro-backtrace-limit=0 -fcolor-diagnostics -std=c99 -Wno-trigraphs -fpascal-strings -Os -Wno-missing-field-initializers -Wno-missing-prototypes -Wno-return-type -Wno-implicit-atomic-properties -Wno-receiver-is-weak -Wno-arc-repeated-use-of-weak -Wno-missing-braces -Wno-parentheses -Wswitch -Wunused-function -Wno-unused-label -Wno-unused-parameter -Wno-unused-variable -Wno-unused-value -Wno-empty-body -Wno-uninitialized -Wno-unknown-pragmas -Wno-shadow -Wno-four-char-constants -Wno-conversion -Wno-constant-conversion -Wno-int-conversion -Wno-bool-conversion -Wno-enum-conversion -Wno-shorten-64-to-32 -Wpointer-sign -Wno-newline-eof -Wno-selector -Wno-strict-selector-match -Wno-undeclared-selector -Wno-deprecated-implementations -DTI_VERSION= -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS7.0.sdk -fstrict-aliasing -Wprotocol -Wdeprecated-declarations -g -Wno-sign-conversion -miphoneos-version-min=4.0 -iquote /Users/63ek/Documents/SDKs/modules/pixate/Titanium-Pixate/Pixate/build/PixateFramework.build/Release-iphoneos/PixateFramework.build/ComPixateFramework-generated-files.hmap -I/Users/63ek/Documents/SDKs/modules/pixate/Titanium-Pixate/Pixate/build/PixateFramework.build/Release-iphoneos/PixateFramework.build/ComPixateFramework-own-target-headers.hmap -I/Users/63ek/Documents/SDKs/modules/pixate/Titanium-Pixate/Pixate/build/PixateFramework.build/Release-iphoneos/PixateFramework.build/ComPixateFramework-all-target-headers.hmap -iquote /Users/63ek/Documents/SDKs/modules/pixate/Titanium-Pixate/Pixate/build/PixateFramework.build/Release-iphoneos/PixateFramework.build/ComPixateFramework-project-headers.hmap -I/Users/63ek/Documents/SDKs/modules/pixate/Titanium-Pixate/Pixate/build/Release-iphoneos/include -I/var/root/Library/Application\ Support/Titanium/mobilesdk/osx/3.1.3.GA/iphone/include -I/var/root/Library/Application\ Support/Titanium/mobilesdk/osx/3.1.3.GA/iphone/include/TiCore -I/Users/63ek/Documents/SDKs/modules/pixate/Titanium-Pixate/Pixate/build/PixateFramework.build/Release-iphoneos/PixateFramework.build/DerivedSources/armv7s -I/Users/63ek/Documents/SDKs/modules/pixate/Titanium-Pixate/Pixate/build/PixateFramework.build/Release-iphoneos/PixateFramework.build/DerivedSources -F/Users/63ek/Documents/SDKs/modules/pixate/Titanium-Pixate/Pixate/build/Release-iphoneos -F/Users/pixate/Desktop/Pixate/Framework -F/Users/pixate/Documents/Titanium_Studio_Workspace/PixateFramework/platform/iphone -F/Users/pixate/Desktop -DTI_POST_1_2 -include /var/folders/zz/zyxvpxvq6csfxvn_n0000000000000/C/com.apple.DeveloperTools/5.0.1-5A2053/Xcode/SharedPrecompiledHeaders/ComPixateFramework_Prefix-dxbefdhcqxtdzxghhbelphbvuduh/ComPixateFramework_Prefix.pch -MMD -MT dependencies -MF /Users/63ek/Documents/SDKs/modules/pixate/Titanium-Pixate/Pixate/build/PixateFramework.build/Release-iphoneos/PixateFramework.build/Objects-normal/armv7s/ComPixateFrameworkModule.d --serialize-diagnostics /Users/63ek/Documents/SDKs/modules/pixate/Titanium-Pixate/Pixate/build/PixateFramework.build/Release-iphoneos/PixateFramework.build/Objects-normal/armv7s/ComPixateFrameworkModule.dia -c /Users/63ek/Documents/SDKs/modules/pixate/Titanium-Pixate/Pixate/Classes/ComPixateFrameworkModule.m -o /Users/63ek/Documents/SDKs/modules/pixate/Titanium-Pixate/Pixate/build/PixateFramework.build/Release-iphoneos/PixateFramework.build/Objects-normal/armv7s/ComPixateFrameworkModule.o
In file included from /Users/63ek/Documents/SDKs/modules/pixate/Titanium-Pixate/Pixate/Classes/ComPixateFrameworkModule.m:19:
/Users/63ek/Documents/SDKs/modules/pixate/Titanium-Pixate/Pixate/Classes/ComPixateFrameworkModule.h:19:9: fatal error:
'TiModule.h' file not found
^
1 error generated.
2013-11-09 16:44:54.632 xcodebuild[85104:3e03] DVTAssertions: Warning in /SourceCache/IDEXcode3ProjectSupport/IDEXcode3ProjectSupport-3574/Xcode3Sources/XcodeIDE/Frameworks/DevToolsBase/pbxcore/SpecificationTypes/XCGccMakefileDependencies.m:78
Details: Failed to load dependencies output contents from /Users/63ek/Documents/SDKs/modules/pixate/Titanium-Pixate/Pixate/build/PixateFramework.build/Release-iphoneos/PixateFramework.build/Objects-normal/armv7s/ComPixateFrameworkModule.d''. Error: Error Domain=NSCocoaErrorDomain Code=260 "The file “ComPixateFrameworkModule.d” couldn’t be opened because there is no such file." UserInfo=0x7f9ffb2d7c90 {NSFilePath=/Users/63ek/Documents/SDKs/modules/pixate/Titanium-Pixate/Pixate/build/PixateFramework.build/Release-iphoneos/PixateFramework.build/Objects-normal/armv7s/ComPixateFrameworkModule.d, NSUnderlyingError=0x7f9ffb2d9f90 "The operation couldn’t be completed. No such file or directory"}. User info: { NSFilePath = "/Users/63ek/Documents/SDKs/modules/pixate/Titanium-Pixate/Pixate/build/PixateFramework.build/Release-iphoneos/PixateFramework.build/Objects-normal/armv7s/ComPixateFrameworkModule.d"; NSUnderlyingError = "Error Domain=NSPOSIXErrorDomain Code=2 \"The operation couldn\U2019t be completed. No such file or directory\""; }. Function: void XCGccMakefileDependenciesParsePathsFromRuleFile(NSString *__strong, F) [F = <lambda at /SourceCache/IDEXcode3ProjectSupport/IDEXcode3ProjectSupport-3574/Xcode3Sources/XcodeIDE/Frameworks/DevToolsBase/pbxcore/SpecificationTypes/XCGccMakefileDependencies.m:168:73>] Thread: <NSThread: 0x7f9ff8d6f160>{name = (null), num = 8} Please file a bug at http://bugreport.apple.com with this warning message and any useful information you can provide. 2013-11-09 16:44:54.632 xcodebuild[85104:f03] DVTAssertions: Warning in /SourceCache/IDEXcode3ProjectSupport/IDEXcode3ProjectSupport-3574/Xcode3Sources/XcodeIDE/Frameworks/DevToolsBase/pbxcore/SpecificationTypes/XCGccMakefileDependencies.m:78 Details: Failed to load dependencies output contents from
/Users/63ek/Documents/SDKs/modules/pixate/Titanium-Pixate/Pixate/build/PixateFramework.build/Release-iphoneos/PixateFramework.build/Objects-normal/armv7/ComPixateFrameworkModule.d''. Error: Error Domain=NSCocoaErrorDomain Code=260 "The file “ComPixateFrameworkModule.d” couldn’t be opened because there is no such file." UserInfo=0x7f9ffb2db7a0 {NSFilePath=/Users/63ek/Documents/SDKs/modules/pixate/Titanium-Pixate/Pixate/build/PixateFramework.build/Release-iphoneos/PixateFramework.build/Objects-normal/armv7/ComPixateFrameworkModule.d, NSUnderlyingError=0x7f9ffb2d3940 "The operation couldn’t be completed. No such file or directory"}. User info: {
NSFilePath = "/Users/63ek/Documents/SDKs/modules/pixate/Titanium-Pixate/Pixate/build/PixateFramework.build/Release-iphoneos/PixateFramework.build/Objects-normal/armv7/ComPixateFrameworkModule.d";
NSUnderlyingError = "Error Domain=NSPOSIXErrorDomain Code=2 "The operation couldn\U2019t be completed. No such file or directory"";
}.
Function: void XCGccMakefileDependenciesParsePathsFromRuleFile(NSString __strong, F) [F = <lambda at /SourceCache/IDEXcode3ProjectSupport/IDEXcode3ProjectSupport-3574/Xcode3Sources/XcodeIDE/Frameworks/DevToolsBase/pbxcore/SpecificationTypes/XCGccMakefileDependencies.m:168:73>]
Thread: <NSThread: 0x7f9ffb2d41e0>{name = (null), num = 7}
Please file a bug at http://bugreport.apple.com with this warning message and any useful information you can provide.
* BUILD FAILED **
The following build commands failed:
CompileC build/PixateFramework.build/Release-iphoneos/PixateFramework.build/Objects-normal/armv7/ComPixateFrameworkModule.o Classes/ComPixateFrameworkModule.m normal armv7 objective-c com.apple.compilers.llvm.clang.1_0.compiler
CompileC build/PixateFramework.build/Release-iphoneos/PixateFramework.build/Objects-normal/armv7s/ComPixateFrameworkModule.o Classes/ComPixateFrameworkModule.m normal armv7s objective-c com.apple.compilers.llvm.clang.1_0.compiler
(2 failures)
xcodebuild failed
I have installed the latest Pixate Freestyle Framework for iOS, it is present in my user Document Folder.
After following the Build Instructions, I get the following error:
The following build commands failed:
CompileC build/PixateFreestyle.build/Release- iphoneos/PixateFreestyle.build/Objects-normal/armv7/ComPixateFreestyleModule.o Classes/ComPixateFreestyleModule.m normal armv7 objective-c com.apple.compilers.llvm.clang.1_0.compiler
CompileC build/PixateFreestyle.build/Release-iphoneos/PixateFreestyle.build/Objects-normal/armv7s/ComPixateFreestyleModule.o Classes/ComPixateFreestyleModule.m normal armv7s objective-c com.apple.compilers.llvm.clang.1_0.compiler
The symbolic link to the PixateFreestyle.framework folder works and links to the correct place, the titanium.xconfig $TITANIUM_SDK
variable is correct.
With Titanium SDK 3.2.2GA and Titanium-Pixate 2.1.1, when adding a styleClass to a Label, it disappears.
This used to work with Titanium SDK 3.1.3GA and Pixate 2.1.0, it has the same broken behavior with Titanium SDK >= 3.2.x and any Pixate version.
app.js
var win1 = Titanium.UI.createWindow({
backgroundColor:'#fff'
});
win1.open();
var normalLabel = Ti.UI.createLabel({
text: 'Label Text - Works',
top: 10,
left: 10
});
win1.add(normalLabel);
var pixateLabel = Ti.UI.createLabel({
text: 'Label Text - Doesnt show',
styleClass: 'test-label'
});
win1.add(pixateLabel);
default.css
.test-label {
top: 20px;
left: 20px;
}
Please find the ready-to-test demo app here: http://www.codekanzlei.de/tmp/pixate-label-test.zip
This isn't the first time I have had problems with styling and positioning labels - other controls work fine and as expected.
libcom.pixate.framework.a rename to libcom.pixate.pxengine.a
After updating to 2.0.0RC1 and compiling the application, Pixate works as expected.
However, when trying to use the module in code via "var PX = require('com.pixate.pxengine');", the app crashes with a red Titanium error screen saying that the com.pixate.pxengine could not be found.
Rolling back to 1.1.0b4 fixed the issue.
I managed to build OK - the end result was "** BUILD SUCCEEDED **"
But I cannot see any ZIP file anywhere?
Not sure how to proceed to use this with Titanium. I was a Pixate Kickstarter backer so keen to get this working. Any help appreciated.
Matt
When trying to build the module by the build instructions, I stumbled upon the following issue:
$ ./build.py
Traceback (most recent call last):
File "./build.py", line 236, in <module>
build_module(manifest,config)
File "./build.py", line 181, in build_module
from tools import ensure_dev_path
ImportError: No module named tools
The reason for the issue is in titanium.xcconfig:
TITANIUM_SDK = /Library/Application Support/Titanium/mobilesdk/osx/$(TITANIUM_SDK_VERSION)
I have the SDK installed in my user folder. By prepending $HOME to the path, the problem is fixed.
TITANIUM_SDK = $HOME/Library/Application Support/Titanium/mobilesdk/osx/$(TITANIUM_SDK_VERSION)
This should either be automatically detected or maybe included in the build instructions.
This is going to be a big pain if you keep compiled releases into the repo itself. Cloning will be so much heavier. You should use the releases feature of GH instead.
Hello,
I try to create the zip from build.py but I get an error of type:
** BUILD FAILED **
The following build commands failed:
CompileC build/PXEngine.build/Release-iphoneos/PXEngine.build/Objects-normal/armv7/ComPixatePxengineModule.o Classes/ComPixatePxengineModule.m normal armv7 objective-c com.apple.compilers.llvm.clang.1_0.compiler
(1 failure)
What should I do ?
Thank you!
The following error happens after installing the new PixateFreestyle module:
[TRACE] ld: framework not found Pixate
[TRACE] clang: error: linker command failed with exit code 1 (use -v to see invocation)
[ERROR] ** BUILD FAILED **
[ERROR] The following build commands failed:
[ERROR] Ld build/Debug-iphonesimulator/myapp.app/myapp normal i386
[ERROR] (1 failure)
I have the following entry under the <ios>
node in my tiapp.xml:
<plist>
<dict>
<key>PXTitanium</key>
<true/>
<key>PXuser</key>
<string>[email protected]</string>
<key>PXkey</key>
<string>------</string>
</dict>
</plist>
And this:
<modules>
<module platform="iphone">com.pixate.pixatefreestyle</module>
</modules>
In this case, the modules lives in the project modules/
folder.
I have no global module installation of any Pixate module.
I use the following code to style in real time css. This doesn't work anymore with 2.1.2.
var PX = require('com.pixate.freestyle');
PX.styleSheetFromFilePathWithOrigin({
monitor: true,
origin: PX.PXStylesheetOriginUser,
filename: '/path/to/project/Resources/default.css'
});
Hello, i'm trying get working this module using TI SDK 3.4.0.GA, i build it successfully, however i can't see nothing change in real time modifying the file default.css
I hope you can help me.
Greetings!
It’s not that professional…
I changed to ln -s ~/Desktop/Pixate/Framework/PXEngine.framework ./PXEngine.framework but I have error:
The following build commands failed:
CompileC build/PXEngine.build/Release-iphoneos/PXEngine.build/Objects-normal/armv7/ComPixatePxengineModule.o Classes/ComPixatePxengineModule.m normal armv7 objective-c com.apple.compilers.llvm.clang.1_0.compiler
(1 failure)
xcodebuild failed
node --version v0.10.17
titanium sdk 3.1.2.G.A
xcode 4.6.3
Hi, is not a real issue, is more a question.
I've look at code and I saw "monitor" arg, where I should set that arg?
I'm using alloy and css work just fine, but will'b nice live-edit, assuming that I want access to the object, like:
var PX = require('com.pixate.framework');
console.log(JSON.stringify(PX));
Thank you!
How to build module for 64-bit?
The error i get:
Undefined symbols for architecture i386:
"_CTFontManagerRegisterGraphicsFont", referenced from:
+[PX_AO loadFontFromURL:] in PXEngine(obj51.o)
ld: symbol(s) not found for architecture i386
clang: error: linker command failed with exit code 1 (use -v to see invocation
Is it posible to resolve this problem by the Module self?
http://answers.pixate.com/questions/145/problem-with-the-titanium-module.html
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.