I was able to build for the simulator when I checked out
https://github.com/mozilla/firefox-ios.git
<https://github.com/mozilla/firefox-ios.git> on the master branch for a
simulator (after waiting for indexing to complete).
However, after I followed the instructions in BUILDING.md (creating
provisioning profiles and changing bundle identifiers), I get a compile error
when compiling for my iPad:
CompileSwift normal i386
cd /Users/jazzman/dev/sydvicious/firefox-ios
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/swift
-frontend -c
/Users/jazzman/dev/sydvicious/firefox-ios/Client/Frontend/Browser/SearchEngines.swift
/Users/jazzman/dev/sydvicious/firefox-ios/Client/Frontend/Browser/URIFixup.swift
/Users/jazzman/dev/sydvicious/firefox-ios/Client/Frontend/Browser/OpenSearch.swift
/Users/jazzman/dev/sydvicious/firefox-ios/Extensions/SendTo/InstructionsViewController.swift
/Users/jazzman/dev/sydvicious/firefox-ios/Providers/Profile.swift
/Users/jazzman/dev/sydvicious/firefox-ios/Extensions/SendTo/ClientPickerViewController.swift
/Users/jazzman/dev/sydvicious/firefox-ios/Extensions/SendTo/ActionViewController.swift
/Users/jazzman/dev/sydvicious/firefox-ios/Providers/NSUserDefaultsPrefs.swift
-target i386-apple-ios8.0 -enable-objc-interop -sdk
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.4.sdk
-I
/Users/jazzman/Library/Developer/Xcode/DerivedData/Client-abhmbbeombzwgxezhbzmtabwhcuv/Build/Products/Debug-iphonesimulator
-I /Users/jazzman/dev/sydvicious/firefox-ios/Storage/modules -F
/Users/jazzman/Library/Developer/Xcode/DerivedData/Client-abhmbbeombzwgxezhbzmtabwhcuv/Build/Products/Debug-iphonesimulator
-application-extension -g -import-objc-header
/Users/jazzman/dev/sydvicious/firefox-ios/Client-Bridging-Header.h
-module-cache-path
/Users/jazzman/Library/Developer/Xcode/DerivedData/ModuleCache -D
MOZ_CHANNEL_DEBUG -serialize-debugging-options -Xcc
-I/Users/jazzman/Library/Developer/Xcode/DerivedData/Client-abhmbbeombzwgxezhbzmtabwhcuv/Build/Intermediates/Client.build/Debug-iphonesimulator/SendTo.build/swift-overrides.hmap
-Xcc -iquote -Xcc
/Users/jazzman/Library/Developer/Xcode/DerivedData/Client-abhmbbeombzwgxezhbzmtabwhcuv/Build/Intermediates/Client.build/Debug-iphonesimulator/SendTo.build/SendTo-generated-files.hmap
-Xcc
-I/Users/jazzman/Library/Developer/Xcode/DerivedData/Client-abhmbbeombzwgxezhbzmtabwhcuv/Build/Intermediates/Client.build/Debug-iphonesimulator/SendTo.build/SendTo-own-target-headers.hmap
-Xcc
-I/Users/jazzman/Library/Developer/Xcode/DerivedData/Client-abhmbbeombzwgxezhbzmtabwhcuv/Build/Intermediates/Client.build/Debug-iphonesimulator/SendTo.build/SendTo-all-non-framework-target-headers.hmap
-Xcc -ivfsoverlay -Xcc
/Users/jazzman/Library/Developer/Xcode/DerivedData/Client-abhmbbeombzwgxezhbzmtabwhcuv/Build/Intermediates/Client.build/all-product-headers.yaml
-Xcc -iquote -Xcc
/Users/jazzman/Library/Developer/Xcode/DerivedData/Client-abhmbbeombzwgxezhbzmtabwhcuv/Build/Intermediates/Client.build/Debug-iphonesimulator/SendTo.build/SendTo-project-headers.hmap
-Xcc
-I/Users/jazzman/Library/Developer/Xcode/DerivedData/Client-abhmbbeombzwgxezhbzmtabwhcuv/Build/Products/Debug-iphonesimulator/include
-Xcc
-I/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include
-Xcc -I/Users/jazzman/dev/sydvicious/firefox-ios -Xcc
-I/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.4.sdk/usr/include/libxml2
-Xcc
-I/Users/jazzman/Library/Developer/Xcode/DerivedData/Client-abhmbbeombzwgxezhbzmtabwhcuv/Build/Intermediates/Client.build/Debug-iphonesimulator/SendTo.build/DerivedSources/i386
-Xcc
-I/Users/jazzman/Library/Developer/Xcode/DerivedData/Client-abhmbbeombzwgxezhbzmtabwhcuv/Build/Intermediates/Client.build/Debug-iphonesimulator/SendTo.build/DerivedSources
-Xcc -DDEBUG=1 -Xcc -DDEBUG=1 -Xcc
-working-directory/Users/jazzman/dev/sydvicious/firefox-ios
-emit-module-doc-path
/Users/jazzman/Library/Developer/Xcode/DerivedData/Client-abhmbbeombzwgxezhbzmtabwhcuv/Build/Intermediates/Client.build/Debug-iphonesimulator/SendTo.build/Objects-normal/i386/SendTo.swiftdoc
-Onone -module-name SendTo -emit-module-path
/Users/jazzman/Library/Developer/Xcode/DerivedData/Client-abhmbbeombzwgxezhbzmtabwhcuv/Build/Intermediates/Client.build/Debug-iphonesimulator/SendTo.build/Objects-normal/i386/SendTo.swiftmodule
-emit-objc-header-path
/Users/jazzman/Library/Developer/Xcode/DerivedData/Client-abhmbbeombzwgxezhbzmtabwhcuv/Build/Intermediates/Client.build/Debug-iphonesimulator/SendTo.build/Objects-normal/i386/SendTo-Swift.h
-serialize-diagnostics-path
/Users/jazzman/Library/Developer/Xcode/DerivedData/Client-abhmbbeombzwgxezhbzmtabwhcuv/Build/Intermediates/Client.build/Debug-iphonesimulator/SendTo.build/Objects-normal/i386/SendTo-master.dia
-emit-dependencies-path
/Users/jazzman/Library/Developer/Xcode/DerivedData/Client-abhmbbeombzwgxezhbzmtabwhcuv/Build/Intermediates/Client.build/Debug-iphonesimulator/SendTo.build/Objects-normal/i386/SendTo-master.d
-o
/Users/jazzman/Library/Developer/Xcode/DerivedData/Client-abhmbbeombzwgxezhbzmtabwhcuv/Build/Intermediates/Client.build/Debug-iphonesimulator/SendTo.build/Objects-normal/i386/SendTo-master.o
/Users/jazzman/dev/sydvicious/firefox-ios/Extensions/SendTo/ClientPickerViewController.swift:84:47:
error: missing argument for parameter 'closure' in call
textLabel.snp_makeConstraints({ (make) -> Void in
^
/Users/jazzman/dev/sydvicious/firefox-ios/Extensions/SendTo/ClientPickerViewController.swift:101:47:
error: missing argument for parameter 'closure' in call
textLabel.snp_makeConstraints({ (make) -> Void in
^
The source in question looks like:
textLabel.snp_makeConstraints({ (make) -> Void in
make.left.equalTo(ClientPickerViewControllerUX.TableHeaderTextPaddingLeft)
make.centerY.equalTo(cell.snp_centerY)
make.right.equalTo(cell.snp_right)
})
and:
textLabel.snp_makeConstraints({ (make) -> Void in
make.left.equalTo(ClientPickerViewControllerUX.DeviceRowTextPaddingLeft)
make.centerY.equalTo(cell.snp_centerY)
make.right.equalTo(cell.snp_right).offset(-ClientPickerViewControllerUX.DeviceRowTextPaddingRight)
})
This does not look any different from other calls to snp_makeConstraints
elsewhere in the project. I tried just building the SendTo target, and it still
fails.
And worse yet, it now happens when building for the simulator.
Any ideas?
Syd Polk
[email protected]
+1-512-905-9904
irc: sydpolk
_______________________________________________
mobile-firefox-dev mailing list
[email protected]
https://mail.mozilla.org/listinfo/mobile-firefox-dev