Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[OSX] Undefined symbols for architecture i386: _NSFSetIsDebugOn #34

Open
jankeesvw opened this issue Sep 27, 2013 · 0 comments
Open

[OSX] Undefined symbols for architecture i386: _NSFSetIsDebugOn #34

jankeesvw opened this issue Sep 27, 2013 · 0 comments

Comments

@jankeesvw
Copy link

I have the same as #17, it only occurs when I build for release:

> rake build:release COCOAPODS_VERBOSE=1                                                                                                                                                               master [7f83c31] (!) deleted untracked
bubble-wrap/camera requires iOS to use.
bubble-wrap/ui requires iOS to use.

Finding Podfile changes
  - NanoStore

Resolving dependencies of

Resolving dependencies for target `Pods' (OS X 10.8)
  - NanoStore (= 2.7.7)
  - NanoStore (= 2.7.7)

Comparing resolved specification to the sandbox manifest
  - NanoStore
     Build ./build/MacOSX-10.8-Release
     Build vendor/Pods
   Compile ./app/models/activity_group.rb
   Compile ./app/config/constants.rb
   Compile ./app/config/version.rb
   Compile ./app/models/activity_event.rb
   Compile ./app/models/notification_center.rb
   Compile ./app/services/notification_tracker.rb
   Compile ./app/views/status_bar_menu.rb
   Compile ./app/controllers/main_window_controller.rb
   Compile ./app/app_delegate.rb
   Compile ./app/extensions/app.rb
   Compile ./app/extensions/time.rb
   Compile ./app/views/main_menu.rb
    Create ./build/MacOSX-10.8-Release/Timi.app/Contents
    Create ./build/MacOSX-10.8-Release/Timi.app/Contents/MacOS
      Link ./build/MacOSX-10.8-Release/Timi.app/Contents/MacOS/Timi
ld: warning: ignoring file /Users/jankeesvw/Documents/timi/timi-osx/vendor/Pods/build-MacOSX/libPods.a, file was built for archive which is not the architecture being linked (i386): /Users/jankeesvw/Documents/timi/timi-osx/vendor/Pods/build-MacOSX/libPods.a
Undefined symbols for architecture i386:
  "_NSFSetIsDebugOn", referenced from:
      _MREP_735B065C4474420FAA8A0248EC143EC7 in nano_store.rb.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): [/usr/bin/clang++ -o "./build/MacOSX-10.8-R...]
/Library/RubyMotion/lib/motion/project/builder.rb:299:in `build'
/Library/RubyMotion/lib/motion/project/app.rb:76:in `build'
/Library/RubyMotion/lib/motion/project/template/osx.rb:46:in `block (2 levels) in <top (required)>'
Tasks: TOP => build:release
(See full trace by running task with --trace)

This is my Gemfile:

source 'https://rubygems.org'

gem 'rake'
gem 'bubble-wrap'
gem 'nano-store', :git => '[email protected]:jankeesvw/NanoStoreInMotion.git'
gem 'motion-cocoapods'

And my Rakefile:

# -*- coding: utf-8 -*-
$:.unshift("/Library/RubyMotion/lib")
require 'motion/project/template/osx'

begin
  require 'bundler'
  Bundler.require
rescue LoadError
end

require 'motion-cocoapods'
require 'bubble-wrap/core'
require 'nano-store'

require File.expand_path("../app/config/version.rb", __FILE__)

Motion::Project::App.setup do |app|
  app.pods do
    pod 'NanoStore', '2.7.7'
  end

  app.name = 'Timi'
  app.version = APP_VERSION
  app.frameworks += ['WebKit', 'AppKit']
  app.icon = 'icon.icns'
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant