{"action":"opened","issue":{"url":"https://api.github.com/repos/theos/theos/issues/324","repository_url":"https://api.github.com/repos/theos/theos","labels_url":"https://api.github.com/repos/theos/theos/issues/324/labels{/name}","comments_url":"https://api.github.com/repos/theos/theos/issues/324/comments","events_url":"https://api.github.com/repos/theos/theos/issues/324/events","html_url":"https://github.com/theos/theos/issues/324","id":332841144,"node_id":"MDU6SXNzdWUzMzI4NDExNDQ=","number":324,"title":"Can not compile tweak project with .x file when using MSHookIvar inside","user":{"login":"ienthach","id":1300386,"node_id":"MDQ6VXNlcjEzMDAzODY=","avatar_url":"https://avatars0.githubusercontent.com/u/1300386?v=4","gravatar_id":"","url":"https://api.github.com/users/ienthach","html_url":"https://github.com/ienthach","followers_url":"https://api.github.com/users/ienthach/followers","following_url":"https://api.github.com/users/ienthach/following{/other_user}","gists_url":"https://api.github.com/users/ienthach/gists{/gist_id}","starred_url":"https://api.github.com/users/ienthach/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ienthach/subscriptions","organizations_url":"https://api.github.com/users/ienthach/orgs","repos_url":"https://api.github.com/users/ienthach/repos","events_url":"https://api.github.com/users/ienthach/events{/privacy}","received_events_url":"https://api.github.com/users/ienthach/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-06-15T16:32:49Z","updated_at":"2018-06-15T16:32:49Z","closed_at":null,"author_association":"NONE","body":"What are the steps to reproduce this issue?\r\n-------------------------------------------\r\n1. create tweak project with NIC.pl\r\n2. write some code with MSHookIvar used\r\n3. rename tweak.xm to tweak.x\r\n4. edit Makefile to compile tweak.x\r\n\r\nWhat happens?\r\n-------------\r\n i use MSHookIvar in tweak. If the file is tweak.xm, the project is compiled, but if i change to tweak.x compile with error \r\n\r\ntweak.xm:\r\n\r\n%hook ClassName\r\n\r\n-(void) viewDidLoad{\r\n\tid ButtonPresenter = MSHookIvar<id>(self, \"presenter\");\r\n\tNSLog(@\"get instance %@\", ButtonPresenter);\r\n\treturn %orig;\r\n}\r\n%end\r\n\r\nWhat were you expecting to happen?\r\n----------------------------------\r\nit can be compiled when the file name is tweak.x\r\n\r\nAny logs, error output, etc?\r\n----------------------------\r\n> Making all for tweak HelloWorld…\r\n==> Preprocessing HelloWorld.x…\r\n==> Compiling HelloWorld.x (arm64)…\r\nHelloWorld.x:3533:43: error: unexpected type name 'id': expected expression\r\n    id ButtonPresenter = MSHookIvar<id>(self, \"presenter\");\r\n                                          ^\r\nHelloWorld.x:3533:32: error: use of undeclared identifier 'MSHookIvar'\r\n    id ButtonPresenter = MSHookIvar<id>(self, \"presenter\");\r\n                               ^\r\nHelloWorld.x:3533:47: error: expression result unused [-Werror,-Wunused-value]\r\n    id ButtonPresenter = MSHookIvar<id>(self, \"presenter\");\r\n\r\n\r\nAny other comments?\r\n-------------------\r\nI noticed about File Extensions for Logos at http://iphonedevwiki.net/index.php/Logos, i dont know how to fix\r\n\r\nWhat versions of software are you using?\r\n----------------------------------------\r\n**Operating System:** macos 10.3.3\r\n\r\n**Toolchain Version:** lastest theos\r\n\r\n**SDK Version:** 10.1\r\n"}}
{"actor":{"display_login":"ienthach"}}