Quantcast
Channel: Appcelerator Developer Center Q&A Unanswered Questions 20
Viewing all articles
Browse latest Browse all 8068

iOS Module Build Error normal i386 | iOS 7.0 | Titanium

$
0
0

Hey Guys,

I could really use some help here I have been stuck on this issue for over a week and still have not found the solution. I am currently trying to build a iOS custom module for my project and I keep failing on the build. I am also new to working with mobile so I may give information that is not needed and I am sorry for that.

The main error that I am currently having is when I run a function for my framework.

Below is how my project is setup.

iPhone Simulator Titanium SDK: 3.2.0 iOS SDK: iOS 6.1 Architectures: Standard Architectures (armv7 armv7s) - $(ARCHS_STANDARD) Base SDK: Latest iOS (iOS 7.0) Build Active Architecture Only: No Supported Platforms: iOS Valid Architectures: arm64 armv7 armv7s

Project Format: Xcode 3.2 –compatible

I believe that it has something to do with either dependencies or the not found for architecture i386 because the i386 is not being referenced at all.

Example Method:

-(id)getNewTTPViewController {
    TTPViewController *tripTikViewController = [[TTPViewController alloc] init];
    return tripTikViewController;    
}
Example Imports & implementation
#import "mapsModule.h"
#import "TiBase.h"
#import "TiHost.h"
#import "TiUtils.h"
#import <GoogleMaps/GoogleMaps.h>
#import <MapsAndDiscounts/TTPViewController.h>
 
 
@implementation mapsModule
Module.xcconfig
OTHER_LDFLAGS=$(inherited) -F'PATH_TO_FRAMEWORK' -framework GoogleMaps -framework MapsAndDiscounts -framework Foundation -framework SystemConfiguration -framework CoreData -framework UIKit -framework MessageUI -framework AddressBook -framework AudioToolbox -framework CoreLocation -framework QuartzCore -framework CoreGraphics -framework AddressBookUI -framework MapKit -framework Security -framework Passkit
_Prefix.pch
#ifdef __OBJC__
    #import <UIKit/UIKit.h>
    #import <Foundation/Foundation.h>
    #import <CoreLocation/CoreLocation.h>
    #import <QuartzCore/QuartzCore.h>
#endif
LOG ERROR:
Ld build/Debug-iphonesimulator/mapsmodule.app/mapsmodule normal i386
    cd /var/folders/95/25b5ym0j0gjct199zbh9xbl54m8ncq/T/mDMcx1iti/mapsmodule/build/iphone
    setenv IPHONEOS_DEPLOYMENT_TARGET 4.3
    setenv PATH "/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin"
    /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++ -arch i386 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator7.0.sdk -L/var/folders/95/25b5ym0j0gjct199zbh9xbl54m8ncq/T/mDMcx1iti/mapsmodule/build/iphone/build/Debug-iphonesimulator -L/var/folders/95/25b5ym0j0gjct199zbh9xbl54m8ncq/T/mDMcx1iti/mapsmodule/build/iphone/lib -L/var/folders/95/25b5ym0j0gjct199zbh9xbl54m8ncq/T/mDMcx1iti/mapsmodule/modules/iphone/com.mapsmodule/1.0 -L/var/folders/95/25b5ym0j0gjct199zbh9xbl54m8ncq/T/mDMcx1iti/mapsmodule/modules/iphone/com.mapsmodule/1.0 -F/var/folders/95/25b5ym0j0gjct199zbh9xbl54m8ncq/T/mDMcx1iti/mapsmodule/build/iphone/build/Debug-iphonesimulator -filelist /var/folders/95/25b5ym0j0gjct199zbh9xbl54m8ncq/T/mDMcx1iti/mapsmodule/build/iphone/build/mapsmodule.build/Debug-iphonesimulator/mapsmodule.build/Objects-normal/i386/mapsmodule.LinkFileList -Xlinker -objc_abi_version -Xlinker 2 -ObjC -weak_framework iAd -weak_framework iAd -fobjc-link-runtime -Xlinker -no_implicit_dylibs -stdlib=libstdc++ -mios-simulator-version-min=4.3 -weak_framework CoreText -framework EventKit -framework EventKitUI -weak_framework Security -licucore -framework Foundation -weak_framework UIKit -framework CoreGraphics -weak_framework AddressBook -framework AddressBookUI -framework CFNetwork -framework CoreLocation -weak_framework MapKit -framework MessageUI -framework MobileCoreServices -framework OpenGLES -framework QuartzCore -framework SystemConfiguration -lsqlite3 -lz -framework AudioToolbox -weak_framework MediaPlayer -framework AVFoundation -lxml2 -framework StoreKit -lTiCore -lcom.mapsmodule -lcom.mapsmodule -framework ExternalAccessory -ltiverify -lti_ios_debugger -lti_ios_profiler -Xlinker -dependency_info -Xlinker /var/folders/95/25b5ym0j0gjct199zbh9xbl54m8ncq/T/mDMcx1iti/mapsmodule/build/iphone/build/mapsmodule.build/Debug-iphonesimulator/mapsmodule.build/Objects-normal/i386/mapsmodule_dependency_info.dat -o /var/folders/95/25b5ym0j0gjct199zbh9xbl54m8ncq/T/mDMcx1iti/mapsmodule/build/iphone/build/Debug-iphonesimulator/mapsmodule.app/mapsmodule
Undefined symbols for architecture i386:
  "_OBJC_CLASS_$_TTPViewController", referenced from:
      objc-class-ref in libcom.mapsmodule.a(ComMapsmoduleModule.o)
ld: symbol(s) not found for architecture i386
clang: error: linker command failed with exit code 1 (use -v to see invocation)
 
** BUILD FAILED **
 
 
The following build commands failed:
    Ld build/Debug-iphonesimulator/mapsmodule.app/mapsmodule normal i386
(1 failure)
EXIT CODE WAS: 65
 
Exception detected in script:
Traceback (most recent call last):
  File "/Users/my_name/Library/Application Support/Titanium/mobilesdk/osx/3.2.0.GA/iphone/builder.py", line 1379, in main
    execute_xcode("iphonesimulator%s" % link_version,["GCC_PREPROCESSOR_DEFINITIONS=__LOG__ID__=%s DEPLOYTYPE=development TI_DEVELOPMENT=1 DEBUG=1 TI_VERSION=%s %s %s" % (log_id,sdk_version,debugstr,kroll_coverage)],False)
  File "/Users/my_name/Library/Application Support/Titanium/mobilesdk/osx/3.2.0.GA/iphone/builder.py", line 1286, in execute_xcode
    output = run.run(args,False,False,o)
  File "/Users/my_name/Library/Application Support/Titanium/mobilesdk/osx/3.2.0.GA/iphone/run.py", line 41, in run
    sys.exit(rc)
SystemExit: 65
I believe that it has something to do with either dependencies or the not found for architecture i386 because the i386 is not being referenced at all.

Thank you so much in advance for taking the time to help me!


Viewing all articles
Browse latest Browse all 8068

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>