Created
July 22, 2013 15:53
-
-
Save dblandin/6054976 to your computer and use it in GitHub Desktop.
Inline function build error using RubyMotion 2.4
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
... | |
NSString * const ContentStringTypeJPEG = @"image/jpeg"; | |
NSString * const ContentStringTypeVideo = @"video/mp4"; | |
inline NSString *stringFromContentType(DSCMultipartContentType contentType) | |
{ | |
switch (contentType) { | |
case DSCMultipartContentJPEG: | |
return ContentStringTypeJPEG; | |
break; | |
case DSCMultipartContentVideo: | |
return ContentStringTypeVideo; | |
break; | |
default: | |
return @""; | |
break; | |
} | |
} | |
... |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Build vendor/DSCMultipartFramework | |
Compile vendor/DSCMultipartFramework/DSCMultipartNetworkingRequest.m | |
Link ./build/iPhoneSimulator-6.0-Development/dscovr.app/dscovr | |
Undefined symbols for architecture i386: | |
"_stringFromContentType", referenced from: | |
-[DSCMultipartUploader initWithPath:destinationURL:contentType:] in libDSCMultipartFramework.a(DSCMultipartUploader.m.o) | |
ld: symbol(s) not found for architecture i386 | |
clang: error: linker command failed with exit code 1 (use -v to see invocation) | |
rake aborted! | |
Command failed with status (1): [/Applications/Xcode.app/Contents/Developer...] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- coding: utf-8 -*- | |
$:.unshift('/Library/RubyMotion/lib') | |
require 'motion/project/template/ios' | |
require 'bundler' | |
Bundler.require | |
Motion::Project::App.setup do |app| | |
... | |
app.vendor_project 'vendor/DSCMultipartFramework', :static | |
... | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment