[View]  [Edit]  [Lock]  [References]  [Attachments]  [History]  [Home]  [Changes]  [Search]  [Help] 

test[S8ObjC] resolve

SwikiCodeRobot @> #testS8ObjCResolve

"Resolve framework paths"
#(	Foundation CoreFoundation
	UIKit
) do: [:framework| | pathName |
	pathName := S8ObjC resolve: framework.
	(pathName notNil and: [ pathName first = $/ ]) ifFalse: [
		self error: 'Must be an absolute path'
	]
].
[	S8ObjC resolve: #InvalidFrameworkName
] on: Error do: [:ex|
	self print: 'Ok - ' ,ex toString stream nextLine
].
#ok