Search Unity

IOSNativeNotificationCenter Build Failed

Discussion in 'Unity Build Automation' started by cavila, Oct 15, 2014.

  1. cavila

    cavila

    Joined:
    Jun 4, 2013
    Posts:
    67
    Hi,

    I'm using IOS Native plugin and I think it may be causing issues with UCB. Not sure if there's something I can do about it. The plugin works fine when I build locally using Xcode 6.0.1 and add the proper frameworks (UIKit, Social, etc).

    Link to plugin: http://forum.unity3d.com/threads/released-ios-native-unity3d-plugin.179379/

    Extract from the logs:
    Code (CSharp):
    1. 2214:        [Unity] Exiting batchmode successfully now!
    2. 2215:        Saving Library to cache
    3. 2216:        Cleaning up
    4. 2217:  + Building exported player (iPhone)
    5. 2218:        XCode
    6. 2219:  + Envrionment config:
    7. 2220:        LOG_VERBOSE=1
    8. 2221:        Setting CFBundleIdentifier=REMOVED
    9. 2222:        Signing with identity 'REMOVED'
    10. 2223:  + Building with Xcode 5.1.1
    11. 2224:        [xcode] Build settings from command line:
    12. 2225:        [xcode]     CODE_SIGN_IDENTITY = REMOVED
    13. 2226:        [xcode]     PROVISIONING_PROFILE =
    14. 2227:        [xcode]     SDKROOT = iphoneos7.1
    15. 2228:        [xcode]     DEBUG_INFORMATION_FORMAT = dwarf-with-dsym
    16. 2229:        [xcode]     DEPLOYMENT_POSTPROCESSING = YES
    17. 2230:        [xcode]     GCC_GENERATE_DEBUGGING_SYMBOLS = YES
    18. 2231:        [xcode]     OTHER_LDFLAGS = -weak_framework CoreMotion -weak-lSystem
    19. 2232:        [xcode]     SEPARATE_STRIP = YES
    20. 2233:        [xcode]     STRIP_INSTALLED_PRODUCT = YES
    21. 2234:        [xcode] === BUILD TARGET Unity-iPhone OF PROJECT Unity-iPhone WITH THE DEFAULT CONFIGURATION (Release) ===
    22. 2235:        [xcode] Check dependencies
    23. 2236:        [xcode] Write auxiliary files
    24. 2237:        [xcode] Create product structure
    25. 2238:        [xcode] /* com.apple.actool.document.warnings */
    26. 2239:        [xcode] /* com.apple.actool.compilation-results */
    27. 2240:        [xcode] PhaseScriptExecution Run\ Script build/Unity-iPhone.build/Release-iphoneos/Unity-iPhone.build/Script-83D0C1FB0E6C8D5900EBCE5D.sh
    28. 2241:        [xcode]     export ACTION=build
    29. 2242:        [xcode]     export AD_HOC_CODE_SIGNING_ALLOWED=NO
    30. 2243:        [xcode]     export ALTERNATE_GROUP=staff
    31. 2244:        [xcode]     export ALTERNATE_MODE=u+w,go-w,a+rX
    32. 2245:        [xcode]     export ALWAYS_SEARCH_USER_PATHS=NO
    33. 2246:        [xcode]     export ALWAYS_USE_SEPARATE_HEADERMAPS=YES
    34. 2247:        [xcode]     export APPLE_INTERNAL_DIR=/AppleInternal
    35. 2248:        [xcode]     export APPLE_INTERNAL_DOCUMENTATION_DIR=/AppleInternal/Documentation
    36. 2249:        [xcode]     export APPLE_INTERNAL_LIBRARY_DIR=/AppleInternal/Library
    37. 2250:        [xcode]     export APPLE_INTERNAL_TOOLS=/AppleInternal/Developer/Tools
    38. 2251:        [xcode]     export APPLY_RULES_IN_COPY_FILES=NO
    39. 2252:        [xcode]     export ARCHS=armv7
    40. 2253:        [xcode]     export ARCHS_STANDARD="armv7 armv7s arm64"
    41. 2254:        [xcode]     export ARCHS_STANDARD_32_64_BIT="armv7 armv7s arm64"
    42. 2255:        [xcode]     export ARCHS_STANDARD_32_BIT="armv7 armv7s"
    43. 2256:        [xcode]     export ARCHS_STANDARD_64_BIT=arm64
    44. 2257:        [xcode]     export ARCHS_STANDARD_INCLUDING_64_BIT="armv7 armv7s arm64"
    45. 2258:        [xcode]     export ARCHS_UNIVERSAL_IPHONE_OS="armv7 armv7s arm64"
    46. 2259:        [xcode]     export ASSETCATALOG_COMPILER_APPICON_NAME=AppIcon
    47. 2260:        [xcode]     export ASSETCATALOG_COMPILER_LAUNCHIMAGE_NAME=LaunchImage
    48. 2261:        [xcode]     export AVAILABLE_PLATFORMS="iphonesimulator macosx iphoneos"
    49. 2262:        [xcode]     export BUILD_COMPONENTS="headers build"
    50. 2263:        [xcode]     export BUILD_STYLE=
    51. 2264:        [xcode]     export BUILD_VARIANTS=normal
    52. 2265:        [xcode]     export CHMOD=/bin/chmod
    53. 2266:        [xcode]     export CHOWN=/usr/sbin/chown
    54. 2267:        [xcode]     export CLANG_CXX_LIBRARY=libstdc++
    55. 2268:        [xcode]     export CLEAN_PRECOMPS=YES
    56. 2269:        [xcode]     export CLONE_HEADERS=NO
    57. 2270:        [xcode]     export CODE_SIGNING_ALLOWED=YES
    58. 2271:        [xcode]     export CODE_SIGNING_REQUIRED=YES
    59. 2272:        [xcode]     export CODE_SIGN_CONTEXT_CLASS=XCiPhoneOSCodeSignContext
    60. 2273:        [xcode]     export CODE_SIGN_IDENTITY="REMOVED"
    61. 2274:        [xcode]     export COLOR_DIAGNOSTICS=NO
    62. 2275:        [xcode]     export COMBINE_HIDPI_IMAGES=NO
    63. 2276:        [xcode]     export COMMAND_MODE=legacy
    64. 2277:        [xcode]     export COMPRESS_PNG_FILES=YES
    65. 2278:        [xcode]     export CONFIGURATION=Release
    66. 2279:        [xcode]     export CONTENTS_FOLDER_PATH=Malaga.app
    67. 2280:        [xcode]     export COPYING_PRESERVES_HFS_DATA=NO
    68. 2281:        [xcode]     export COPY_PHASE_STRIP=YES
    69. 2282:        [xcode]     export COPY_RESOURCES_FROM_STATIC_FRAMEWORKS=YES
    70. 2283:        [xcode]     export CP=/bin/cp
    71. 2284:        [xcode]     export CREATE_INFOPLIST_SECTION_IN_BINARY=NO
    72. 2285:        [xcode]     export CURRENT_ARCH=armv7
    73. 2286:        [xcode]     export CURRENT_VARIANT=normal
    74. 2287:        [xcode]     export DEAD_CODE_STRIPPING=YES
    75. 2288:        [xcode]     export DEBUGGING_SYMBOLS=YES
    76. 2289:        [xcode]     export DEBUG_INFORMATION_FORMAT=dwarf-with-dsym
    77. 2290:        [xcode]     export DEFAULT_COMPILER=com.apple.compilers.llvm.clang.1_0
    78. 2291:        [xcode]     export DEFAULT_KEXT_INSTALL_PATH=/System/Library/Extensions
    79. 2292:        [xcode]     export DEPLOYMENT_LOCATION=NO
    80. 2293:        [xcode]     export DEPLOYMENT_POSTPROCESSING=YES
    81. 2294:        [xcode]     export DEVELOPER_APPLICATIONS_DIR=/APPLICATION_PATH/Xcode.app/Contents/Developer/Applications
    82. 2295:        [xcode]     export DEVELOPER_BIN_DIR=/APPLICATION_PATH/Xcode.app/Contents/Developer/usr/bin
    83. 2296:        [xcode]     export DEVELOPER_FRAMEWORKS_DIR=/APPLICATION_PATH/Xcode.app/Contents/Developer/Library/Frameworks
    84. 2297:        [xcode]     export DEVELOPER_FRAMEWORKS_DIR_QUOTED=/APPLICATION_PATH/Xcode.app/Contents/Developer/Library/Frameworks
    85. 2298:        [xcode]     export DEVELOPER_LIBRARY_DIR=/APPLICATION_PATH/Xcode.app/Contents/Developer/Library
    86. 2299:        [xcode]     export DEVELOPER_SDK_DIR=/APPLICATION_PATH/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs
    87. 2300:        [xcode]     export DEVELOPER_TOOLS_DIR=/APPLICATION_PATH/Xcode.app/Contents/Developer/Tools
    88. 2301:        [xcode]     export DEVELOPER_USR_DIR=/APPLICATION_PATH/Xcode.app/Contents/Developer/usr
    89. 2302:        [xcode]     export DEVELOPMENT_LANGUAGE=English
    90. 2303:        [xcode]     export DOCUMENTATION_FOLDER_PATH=Malaga.app/English.lproj/Documentation
    91. 2304:        [xcode]     export DO_HEADER_SCANNING_IN_JAM=NO
    92. 2305:        [xcode]     export DT_TOOLCHAIN_DIR=/APPLICATION_PATH/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain
    93. 2306:        [xcode]     export DWARF_DSYM_FILE_NAME=Malaga.app.dSYM
    94. 2307:        [xcode]     export DWARF_DSYM_FILE_SHOULD_ACCOMPANY_PRODUCT=NO
    95. 2308:        [xcode]     export EFFECTIVE_PLATFORM_NAME=-iphoneos
    96. 2309:        [xcode]     export EMBEDDED_PROFILE_NAME=embedded.mobileprovision
    97. 2310:        [xcode]     export ENABLE_HEADER_DEPENDENCIES=YES
    98. 2311:        [xcode]     export ENTITLEMENTS_ALLOWED=YES
    99. 2312:        [xcode]     export ENTITLEMENTS_REQUIRED=YES
    100. 2313:        [xcode]     export EXCLUDED_INSTALLSRC_SUBDIRECTORY_PATTERNS=".DS_Store .svn .git .hg CVS"
    101. 2314:        [xcode]     export EXCLUDED_RECURSIVE_SEARCH_PATH_SUBDIRECTORIES="*.nib *.lproj *.framework *.gch (*) .DS_Store CVS .svn .git .hg *.xcodeproj *.xcode *.pbproj *.pbxproj"
    102. 2315:        [xcode]     export EXECUTABLES_FOLDER_PATH=Malaga.app/Executables
    103. 2316:        [xcode]     export EXECUTABLE_FOLDER_PATH=Malaga.app
    104. 2317:        [xcode]     export EXECUTABLE_NAME=Malaga
    105. 2318:        [xcode]     export EXECUTABLE_PATH=Malaga.app/Malaga
    106. 2319:        [xcode]     export FRAMEWORKS_FOLDER_PATH=Malaga.app/Frameworks
    107. 2320:        [xcode]     export FRAMEWORK_FLAG_PREFIX=-framework
    108. 2321:        [xcode]     export FRAMEWORK_VERSION=A
    109. 2322:        [xcode]     export FULL_PRODUCT_NAME=Malaga.app
    110. 2323:        [xcode]     export GCC3_VERSION=3.3
    111. 2324:        [xcode]     export GCC_C_LANGUAGE_STANDARD=c99
    112. 2325:        [xcode]     export GCC_ENABLE_CPP_EXCEPTIONS=NO
    113. 2326:        [xcode]     export GCC_ENABLE_CPP_RTTI=NO
    114. 2327:        [xcode]     export GCC_ENABLE_OBJC_EXCEPTIONS=NO
    115. 2328:        [xcode]     export GCC_GENERATE_DEBUGGING_SYMBOLS=YES
    116. 2329:        [xcode]     export GCC_INLINES_ARE_PRIVATE_EXTERN=YES
    117. 2330:        [xcode]     export GCC_PFE_FILE_C_DIALECTS="c objective-c c++ objective-c++"
    118. 2331:        [xcode]     export GCC_PRECOMPILE_PREFIX_HEADER=YES
    119. 2332:        [xcode]     export GCC_PREFIX_HEADER=Classes/iPhone_target_Prefix.pch
    120. 2333:        [xcode]     export GCC_SYMBOLS_PRIVATE_EXTERN=YES
    121. 2334:        [xcode]     export GCC_THUMB_SUPPORT=NO
    122. 2335:        [xcode]     export GCC_TREAT_WARNINGS_AS_ERRORS=NO
    123. 2336:        [xcode]     export GCC_USE_INDIRECT_FUNCTION_CALLS=NO
    124. 2337:        [xcode]     export GCC_VERSION=com.apple.compilers.llvm.clang.1_0
    125. 2338:        [xcode]     export GCC_VERSION_IDENTIFIER=com_apple_compilers_llvm_clang_1_0
    126. 2339:        [xcode]     export GCC_WARN_ABOUT_RETURN_TYPE=YES
    127. 2340:        [xcode]     export GCC_WARN_UNUSED_VARIABLE=YES
    128. 2341:        [xcode]     export GENERATE_MASTER_OBJECT_FILE=NO
    129. 2342:        [xcode]     export GENERATE_PKGINFO_FILE=YES
    130. 2343:        [xcode]     export GENERATE_PROFILING_CODE=NO
    131. 2344:        [xcode]     export GID=20
    132. 2345:        [xcode]     export GROUP=staff
    133. 2346:        [xcode]     export HEADERMAP_INCLUDES_FLAT_ENTRIES_FOR_TARGET_BEING_BUILT=YES
    134. 2347:        [xcode]     export HEADERMAP_INCLUDES_FRAMEWORK_ENTRIES_FOR_ALL_PRODUCT_TYPES=YES
    135. 2348:        [xcode]     export HEADERMAP_INCLUDES_NONPUBLIC_NONPRIVATE_HEADERS=YES
    136. 2349:        [xcode]     export HEADERMAP_INCLUDES_PROJECT_HEADERS=YES
    137. 2350:        [xcode]     export ICONV=/usr/bin/iconv
    138. 2351:        [xcode]     export INFOPLIST_EXPAND_BUILD_SETTINGS=YES
    139. 2352:        [xcode]     export INFOPLIST_FILE=Info.plist
    140. 2353:        [xcode]     export INFOPLIST_OUTPUT_FORMAT=binary
    141. 2354:        [xcode]     export INFOPLIST_PATH=Malaga.app/Info.plist
    142. 2355:        [xcode]     export INFOPLIST_PREPROCESS=NO
    143. 2356:        [xcode]     export INFOSTRINGS_PATH=Malaga.app/English.lproj/InfoPlist.strings
    144. 2357:        [xcode]     export INSTALL_GROUP=staff
    145. 2358:        [xcode]     export INSTALL_MODE_FLAG=u+w,go-w,a+rX
    146. 2359:        [xcode]     export INSTALL_PATH=/Applications
    147. 2360:        [xcode]     export IPHONEOS_DEPLOYMENT_TARGET=4.3
    148. 2361:        [xcode]     export JAVAC_DEFAULT_FLAGS="-J-Xms64m -J-XX:NewSize=4M -J-Dfile.encoding=UTF8"
    149. 2362:        [xcode]     export JAVA_APP_STUB=/System/Library/Frameworks/JavaVM.framework/Resources/MacOS/JavaApplicationStub
    150. 2363:        [xcode]     export JAVA_ARCHIVE_CLASSES=YES
    151. 2364:        [xcode]     export JAVA_ARCHIVE_TYPE=JAR
    152. 2365:        [xcode]     export JAVA_COMPILER=/usr/bin/javac
    153. 2366:        [xcode]     export JAVA_FOLDER_PATH=Malaga.app/Java
    154. 2367:        [xcode]     export JAVA_FRAMEWORK_RESOURCES_DIRS=Resources
    155. 2368:        [xcode]     export JAVA_JAR_FLAGS=cv
    156. 2369:        [xcode]     export JAVA_SOURCE_SUBDIR=.
    157. 2370:        [xcode]     export JAVA_USE_DEPENDENCIES=YES
    158. 2371:        [xcode]     export JAVA_ZIP_FLAGS=-urg
    159. 2372:        [xcode]     export JIKES_DEFAULT_FLAGS="+E +OLDCSO"
    160. 2373:        [xcode]     export KEEP_PRIVATE_EXTERNS=NO
    161. 2374:        [xcode]     export LD_GENERATE_MAP_FILE=NO
    162. 2375:        [xcode]     export LD_NO_PIE=NO
    163. 2376:        [xcode]     export LD_QUOTE_LINKER_ARGUMENTS_FOR_COMPILER_DRIVER=YES
    164. 2377:        [xcode]     export LEX=lex
    165. 2378:        [xcode]     export LIBRARY_FLAG_NOSPACE=YES
    166. 2379:        [xcode]     export LIBRARY_FLAG_PREFIX=-l
    167. 2380:        [xcode]     export LIBRARY_KEXT_INSTALL_PATH=/Library/Extensions
    168. 2381:        [xcode]     export LINKER_DISPLAYS_MANGLED_NAMES=NO
    169. 2382:        [xcode]     export LINK_WITH_STANDARD_LIBRARIES=YES
    170. 2383:        [xcode]     export LOCALIZED_RESOURCES_FOLDER_PATH=Malaga.app/English.lproj
    171. 2384:        [xcode]     export LOCAL_ADMIN_APPS_DIR=/APPLICATION_PATH/Utilities
    172. 2385:        [xcode]     export LOCAL_APPS_DIR=/Applications
    173. 2386:        [xcode]     export LOCAL_LIBRARY_DIR=/Library
    174. 2387:        [xcode]     export MACH_O_TYPE=mh_execute
    175. 2388:        [xcode]     export MAC_OS_X_PRODUCT_BUILD_VERSION=13D65
    176. 2389:        [xcode]     export MAC_OS_X_VERSION_ACTUAL=1093
    177. 2390:        [xcode]     export MAC_OS_X_VERSION_MAJOR=1090
    178. 2391:        [xcode]     export MAC_OS_X_VERSION_MINOR=0903
    179. 2392:        [xcode]     export NATIVE_ARCH=armv7
    180. 2393:        [xcode]     export NATIVE_ARCH_32_BIT=i386
    181. 2394:        [xcode]     export NATIVE_ARCH_64_BIT=x86_64
    182. 2395:        [xcode]     export NATIVE_ARCH_ACTUAL=x86_64
    183. 2396:        [xcode]     export NO_COMMON=YES
    184. 2397:        [xcode]     export ONLY_ACTIVE_ARCH=NO
    185. 2398:        [xcode]     export OPTIMIZATION_LEVEL=0
    186. 2399:        [xcode]     export OS=MACOS
    187. 2400:        [xcode]     export OSAC=/usr/bin/osacompile
    188. 2401:        [xcode]     export OTHER_CFLAGS=-mno-thumb
    189. 2402:        [xcode]     export OTHER_CPLUSPLUSFLAGS=-mno-thumb
    190. 2403:        [xcode]     export OTHER_LDFLAGS="-weak_framework CoreMotion -weak-lSystem"
    191. 2404:        [xcode]     export PACKAGE_TYPE=com.apple.package-type.wrapper.application
    192. 2405:        [xcode]     export PASCAL_STRINGS=YES
    193. 2406:        [xcode]     export PATH_PREFIXES_EXCLUDED_FROM_HEADER_DEPENDENCIES="/usr/include /usr/local/include /System/Library/Frameworks /System/Library/PrivateFrameworks /APPLICATION_PATH/Xcode.app/Contents/Developer/Headers /Applications/Xcode.app/Contents/Developer/SDKs /Applications/Xcode.app/Contents/Developer/Platforms"
    194. 2407:        [xcode]     export PBDEVELOPMENTPLIST_PATH=Malaga.app/pbdevelopment.plist
    195. 2408:        [xcode]     export PFE_FILE_C_DIALECTS="objective-c c++ objective-c++""/APPLICATION_PATH/Xcode.app/Contents/Developer/Applications/Utilities/Built Examples"
    196. 2467:        [xcode]     export SYSTEM_DEVELOPER_DOC_DIR="/APPLICATION_PATH/Xcode.app/Contents/Developer/ADC Reference Library"
    197. 2468:        [xcode]     export SYSTEM_DEVELOPER_GRAPHICS_TOOLS_DIR="/APPLICATION_PATH/Xcode.app/Contents/Developer/Applications/Graphics Tools"
    198. 2469:        [xcode]     export SYSTEM_DEVELOPER_JAVA_TOOLS_DIR="/APPLICATION_PATH/Xcode.app/Contents/Developer/Applications/Java Tools"
    199. 2470:        [xcode]     export SYSTEM_DEVELOPER_PERFORMANCE_TOOLS_DIR="/APPLICATION_PATH/Xcode.app/Contents/Developer/Applications/Performance Tools"
    200. 2471:        [xcode]     export SYSTEM_DEVELOPER_RELEASENOTES_DIR="/APPLICATION_PATH/Xcode.app/Contents/Developer/ADC Reference Library/releasenotes"
    201. 2472:        [xcode]     export SYSTEM_DEVELOPER_TOOLS=/APPLICATION_PATH/Xcode.app/Contents/Developer/Tools
    202. 2473:        [xcode]     export SYSTEM_DEVELOPER_TOOLS_DOC_DIR="/APPLICATION_PATH/Xcode.app/Contents/Developer/ADC Reference Library/documentation/DeveloperTools"
    203. 2474:        [xcode]     export SYSTEM_DEVELOPER_TOOLS_RELEASENOTES_DIR="/APPLICATION_PATH/Xcode.app/Contents/Developer/ADC Reference Library/releasenotes/DeveloperTools"
    204. 2475:        [xcode]     export SYSTEM_DEVELOPER_USR_DIR=/APPLICATION_PATH/Xcode.app/Contents/Developer/usr
    205. 2476:        [xcode]     export SYSTEM_DEVELOPER_UTILITIES_DIR=/APPLICATION_PATH/Xcode.app/Contents/Developer/Applications/Utilities
    206. 2477:        [xcode]     export SYSTEM_DOCUMENTATION_DIR=/Library/Documentation
    207. 2478:        [xcode]     export SYSTEM_KEXT_INSTALL_PATH=/System/Library/Extensions
    208. 2479:        [xcode]     export SYSTEM_LIBRARY_DIR=/System/Library
    209. 2480:        [xcode]     export TARGETED_DEVICE_FAMILY=1,2
    210. 2481:        [xcode]     export TARGETNAME=Unity-iPhone
    211. 2482:        [xcode]     export TARGET_NAME=Unity-iPhone
    212. 2483:        [xcode]     export TOOLCHAINS=com.apple.dt.toolchain.XcodeDefault
    213. 2484:        [xcode]     export UID=502
    214. 2485:        [xcode]     export UNLOCALIZED_RESOURCES_FOLDER_PATH=Malaga.app
    215. 2486:        [xcode]     export UNSTRIPPED_PRODUCT=NO
    216. 2487:        [xcode]     export USE_DYNAMIC_NO_PIC=YES
    217. 2488:        [xcode]     export USE_HEADERMAP=YES
    218. 2489:        [xcode]     export USE_HEADER_SYMLINKS=NO
    219. 2490:        [xcode]     export VALIDATE_PRODUCT=NO
    220. 2491:        [xcode]     export VALID_ARCHS="arm64 armv7 armv7s"
    221. 2492:        [xcode]     export VERBOSE_PBXCP=NO
    222. 2493:        [xcode]     export VERSIONPLIST_PATH=Malaga.app/version.plist
    223. 2494:        [xcode]     export VERSION_INFO_FILE=Malaga_vers.c
    224. 2495:        [xcode]     export VERSION_INFO_STRING="\"@(#)PROGRAM:Malaga  PROJECT:Unity-iPhone-\""'UIRemoteNotificationTypeAlert' declared here
    225. 2562:        [xcode]     UIRemoteNotificationTypeAlert   = 1 << 2,
    226. 2563:        [xcode]     ^
    227. 2564:        [xcode]             [data appendString:  [NSString stringWithFormat:@"%u",[[UIApplication sharedApplication] currentUserNotificationSettings].types]];
    228. 2565:        [xcode]                                                                                                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    229. 2566:        [xcode] In file included from /APPLICATION_PATH/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS7.1.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIKit.h:14:
    230. 2567:        [xcode] In file included from /APPLICATION_PATH/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS7.1.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIActivityViewController.h:9:
    231. 2568:        [xcode] In file included from /APPLICATION_PATH/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS7.1.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIViewController.h:10:
    232. 2569:        [xcode] /APPLICATION_PATH/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS7.1.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIApplication.h:100:40: note: receiver is instance of class declared here
    233. 2570:        [xcode] NS_CLASS_AVAILABLE_IOS(2_0) @interface UIApplication : UIResponder
    234. 2571:        [xcode]                                        ^
    235. 2572:        [xcode]             [data appendString:  [NSString stringWithFormat:@"%u",[[UIApplication sharedApplication] currentUserNotificationSettings].types]];
    236. 2573:        [xcode]                                                                                                                                       ^
    237. 2574:        [xcode]         if((NotificationSettings.types & UIUserNotificationTypeBadge) == 0) {
    238. 2575:        [xcode]                                          ^~~~~~~~~~~~~~~~~~~~~~~~~~~
    239. 2576:        [xcode]                                          UIRemoteNotificationTypeBadge
    240. 2577:        [xcode] In file included from /APPLICATION_PATH/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS7.1.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIKit.h:14:
    241. 2578:        [xcode] In file included from /APPLICATION_PATH/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS7.1.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIActivityViewController.h:9:
    242. 2579:        [xcode] In file included from /APPLICATION_PATH/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS7.1.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIViewController.h:10:
    243. 2580:        [xcode] /APPLICATION_PATH/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS7.1.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIApplication.h:62:5: note: 'UIRemoteNotificationTypeBadge' declared here
    244. 2581:        [xcode]     UIRemoteNotificationTypeBadge   = 1 << 0,
    245. 2582:        [xcode]     ^
    246. 2583:        [xcode]         NSLog(@"ISN: sss %u", NotificationSettings.types & UIUserNotificationTypeSound);
    247. 2584:        [xcode]                                                            ^~~~~~~~~~~~~~~~~~~~~~~~~~~
    248. 2585:        [xcode]                                                            UIRemoteNotificationTypeSound
    249. 2586:        [xcode] In file included from /APPLICATION_PATH/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS7.1.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIKit.h:14:
    250. 2587:        [xcode] In file included from /APPLICATION_PATH/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS7.1.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIActivityViewController.h:9:
    251. 2588:        [xcode] In file included from /APPLICATION_PATH/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS7.1.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIViewController.h:10:
    252. 2589:        [xcode] /APPLICATION_PATH/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS7.1.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIApplication.h:63:5: note: 'UIRemoteNotificationTypeSound' declared here
    253. 2590:        [xcode]     UIRemoteNotificationTypeSound   = 1 << 1,
    254. 2591:        [xcode]     ^
    255. 2592:        [xcode]         if((NotificationSettings.types & UIUserNotificationTypeSound) == 0) {
    256. 2593:        [xcode]                                          ^~~~~~~~~~~~~~~~~~~~~~~~~~~
    257. 2594:        [xcode]                                          UIRemoteNotificationTypeSound
    258. 2595:        [xcode] In file included from /APPLICATION_PATH/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS7.1.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIKit.h:14:
    259. 2596:        [xcode] In file included from /APPLICATION_PATH/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS7.1.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIActivityViewController.h:9:
    260. 2597:        [xcode] In file included from /APPLICATION_PATH/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS7.1.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIViewController.h:10:
    261. 2598:        [xcode] /APPLICATION_PATH/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS7.1.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIApplication.h:63:5: note: 'UIRemoteNotificationTypeSound' declared here
    262. 2599:        [xcode]     UIRemoteNotificationTypeSound   = 1 << 1,
    263. 2600:        [xcode]     ^
    264. 2601:        [xcode]          [data appendString:  [NSString stringWithFormat:@"%u",[[UIApplication sharedApplication] currentUserNotificationSettings].types]];
    265. 2602:        [xcode]                                                                                                   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    266. 2603:        [xcode] In file included from /APPLICATION_PATH/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS7.1.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIKit.h:14:
    267. 2604:        [xcode] In file included from /APPLICATION_PATH/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS7.1.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIActivityViewController.h:9:
    268. 2605:        [xcode] In file included from /APPLICATION_PATH/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS7.1.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIViewController.h:10:
    269. 2606:        [xcode] /APPLICATION_PATH/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS7.1.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIApplication.h:100:40: note: receiver is instance of class declared here
    270. 2607:        [xcode] NS_CLASS_AVAILABLE_IOS(2_0) @interface UIApplication : UIResponder
    271. 2608:        [xcode]                                        ^
    272. 2609:        [xcode]          [data appendString:  [NSString stringWithFormat:@"%u",[[UIApplication sharedApplication] currentUserNotificationSettings].types]];
    273. 2610:        [xcode]                                                                                                                                    ^
    274. 2611:        [xcode] 3 warnings and 8 errors generated.
    275. 2612:        [xcode] CompileC build/Unity-iPhone.build/Release-iphoneos/Unity-iPhone.build/Objects-normal/armv7/IOSNativePopUpsManager.o Libraries/IOSNativePopUpsManager.mm normal armv7 objective-c++ com.apple.compilers.llvm.clang.1_0.compiler
    276. 2613:        [xcode]     export LANG=en_US.US-ASCII
    277. 2614:        [xcode] CompileC build/Unity-iPhone.build/Release-iphoneos/Unity-iPhone.build/Objects-normal/armv7/IOSNativeUtility.o Libraries/IOSNativeUtility.mm normal armv7 objective-c++ com.apple.compilers.llvm.clang.1_0.compiler
    278. 2615:        [xcode]     export LANG=en_US.US-ASCII
    279. 2616:        [xcode] CompileC build/Unity-iPhone.build/Release-iphoneos/Unity-iPhone.build/Objects-normal/armv7/ISNCamera.o Libraries/ISNCamera.mm normal armv7 objective-c++ com.apple.compilers.llvm.clang.1_0.compiler
    280. 2617:        [xcode]     export LANG=en_US.US-ASCII
    281. 2618:        [xcode] ** BUILD FAILED **
    282. 2619:        [xcode] The following build commands failed:
    283. 2620:        [xcode]     CompileC build/Unity-iPhone.build/Release-iphoneos/Unity-iPhone.build/Objects-normal/armv7/IOSNativeNotificationCenter.o Libraries/IOSNativeNotificationCenter.mm normal armv7 objective-c++ com.apple.compilers.llvm.clang.1_0.compiler
    284. 2621:        [xcode] (1 failure)
    285. 2622: ! build of 'default-ios' failed. compile failed
     
  2. David-Berger

    David-Berger

    Unity Technologies

    Joined:
    Jul 16, 2014
    Posts:
    745
    Hi cavila, thank you for trying the service! Are you already using the Xcode Manipulation API to add the XCode frameworks?

    Just in case you are not: If your project requires adding Xcode frameworks after Unity exports the player but before the Xcode process runs, you'll need to check out https://build.cloud.unity3d.com/support/guides/advancedfeatures and learn how to include the Xcode Manipulation API in your project. You'll also need to either define a UCB post-Export method or else utilize the postProcessBuildAttribute on your own method:

    http://docs.unity3d.com/ScriptReference/Callbacks.PostProcessBuildAttribute.html

    Using the Xcode Manipulation API does NOT require access to UCB Advanced Settings, but using a UCB post-Export method does.
     
  3. cavila

    cavila

    Joined:
    Jun 4, 2013
    Posts:
    67
    Hi David,

    Thanks for the help, I wasn't sure where to start. I went ahead and explored the examples given in the support guides to implement the Xcode Manipulation API. I was able to cobble this together:

    Code (CSharp):
    1. using UnityEngine;
    2. using UnityEditor;
    3. using UnityEditor.Callbacks;
    4. using UnityEditor.iOS.Xcode;
    5.  
    6. public class XcodePostProcess
    7. {
    8.  
    9.     [PostProcessBuild]
    10.     public static void OnPostProcessBuild(BuildTarget buildTarget, string path)
    11.     {
    12.  
    13.         if (buildTarget == BuildTarget.iPhone)
    14.         {
    15.             PBXProject proj = new PBXProject();
    16.             string pbxPath = path + "/Unity-iPhone.xcodeproj/project.pbxproj";
    17.             proj.ReadFromFile(pbxPath);
    18.  
    19.             string target = proj.TargetGuidByName("Unity-iPhone");
    20.  
    21.             // Add custom system frameworks. Duplicate frameworks are ignored.
    22.             // needed by our native plugin in Assets/Plugins/iOS
    23.             proj.AddFrameworkToProject(target, "StoreKit.framework", false /*not weak*/);
    24.             proj.AddFrameworkToProject(target, "MessageUI.framework", false);
    25.             proj.AddFrameworkToProject(target, "Social.framework", false);
    26.             proj.AddFrameworkToProject(target, "UIKit.framework", false);
    27.             proj.AddFrameworkToProject(target, "MediaPlayer.framework", false);
    28.  
    29.             proj.WriteToFile(pbxPath);
    30.         }
    31.     }
    32. }
    When using the IOS Native plugin the build fails to complete with the following:

    When I remove the IOS Native plugin but keep the OnPostProcessBuild() call the build is successful. I'm a bit puzzled as to why the Xcode API is unable to parse the xcodeproj file but at least I can narrow it down to something with the plugin. I'll keep posting here all findings.
     
    Last edited: Oct 17, 2014
    hypeNate likes this.