Skip to content

Instantly share code, notes, and snippets.

@dblandin
Created July 22, 2013 15:53
Show Gist options
  • Save dblandin/6054976 to your computer and use it in GitHub Desktop.
Save dblandin/6054976 to your computer and use it in GitHub Desktop.
Inline function build error using RubyMotion 2.4
...
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;
}
}
...
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...]
# -*- 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